From 979de95703f5e689ed193652b84625e649607a62 Mon Sep 17 00:00:00 2001 From: Max Prokopiev Date: Sun, 29 Sep 2013 21:30:59 +0400 Subject: [PATCH 1/4] Update link to the stable lein --- recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/default.rb b/recipes/default.rb index dc47e43..c2cb6cc 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -18,7 +18,7 @@ # remote_file "/usr/local/bin/lein" do - source "https://raw.github.com/technomancy/leiningen/5eaad5c48db0668d773e6e964bdb64c30116c370/bin/lein" + source "https://raw.github.com/technomancy/leiningen/stable/bin/lein" mode "755" owner "root" group "root" From 3f26283b13aa638710961c716808980cd9398c54 Mon Sep 17 00:00:00 2001 From: Max Prokopiev Date: Sun, 29 Sep 2013 21:36:15 +0400 Subject: [PATCH 2/4] Set HTTP_CLIENT --- recipes/default.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/default.rb b/recipes/default.rb index c2cb6cc..a934b7d 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -26,9 +26,9 @@ end execute "install_leiningen" do - command "export HTTP_CLIENT='curl --insecure -f -L -o'; lein version" + command "lein version" user node[:lein][:user] group node[:lein][:group] - environment ({"HOME" => node[:lein][:home]}) + environment ({"HOME" => node[:lein][:home], "HTTP_CLIENT" => 'curl --insecure -f -L -o'}) end From 4e8eb54a0959bf122224c98f54b986affe420733 Mon Sep 17 00:00:00 2001 From: Max Prokopiev Date: Wed, 1 Oct 2014 15:47:53 +0400 Subject: [PATCH 3/4] Update link, metadata and readme --- README.md | 6 ++++-- metadata.rb | 8 ++++---- recipes/default.rb | 8 ++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 25cdf2c..ab0a449 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ # DESCRIPTION: -Installs leiningen from the built image on github (http://github.com/technomancy/leiningen/raw/stable/bin/lein) +Installs leiningen from the built image on github: https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein + +Forked from the outdated repo https://github.com/runa-labs/chef-leiningen (see https://github.com/runa-labs/chef-leiningen/pull/3) # REQUIREMENTS: none -# ATTRIBUTES: +# ATTRIBUTES: none diff --git a/metadata.rb b/metadata.rb index 3d1f7e2..f374f24 100644 --- a/metadata.rb +++ b/metadata.rb @@ -1,6 +1,6 @@ -maintainer "Runa Inc." -maintainer_email "ops@runa.com" +maintainer "Max Prokopiev" +maintainer_email "me@maxprokopiev.com" license "Apache 2.0" -description "Installs/Configures leiningen" +description "Installs/Configures stable leiningen" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version "0.3.5" +version "0.1.0" diff --git a/recipes/default.rb b/recipes/default.rb index a934b7d..0af9c09 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -7,9 +7,9 @@ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -18,7 +18,7 @@ # remote_file "/usr/local/bin/lein" do - source "https://raw.github.com/technomancy/leiningen/stable/bin/lein" + source "https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein" mode "755" owner "root" group "root" @@ -27,7 +27,7 @@ execute "install_leiningen" do command "lein version" - user node[:lein][:user] + user node[:lein][:user] group node[:lein][:group] environment ({"HOME" => node[:lein][:home], "HTTP_CLIENT" => 'curl --insecure -f -L -o'}) end From 0bf153507a33fd4bd14ceee7e165067c25ca2014 Mon Sep 17 00:00:00 2001 From: Max Prokopiev Date: Wed, 1 Oct 2014 15:50:52 +0400 Subject: [PATCH 4/4] Remove metadata.json --- metadata.json | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 metadata.json diff --git a/metadata.json b/metadata.json deleted file mode 100644 index 2ae747f..0000000 --- a/metadata.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "leiningen", - "description": "Installs/Configures leiningen", - "long_description": "# DESCRIPTION:\n\nInstalls leiningen from the built image on github (http://github.com/technomancy/leiningen/raw/stable/bin/lein)\n\n# REQUIREMENTS:\n\nnone\n\n# ATTRIBUTES: \n\nnone\n\n# USAGE:\n\n```\n leiningen_project \"Deploy Something\" do\n action [:build]\n s3_wagon_private true\n s3_username aws['access_key']\n s3_passphrase aws['secret_key']\n uberjar_name jar_name\n source_dir source_dir\n deploy_user user\n end\n```\n", - "maintainer": "Runa Inc.", - "maintainer_email": "ops@runa.com", - "license": "Apache 2.0", - "platforms": { - }, - "dependencies": { - }, - "recommendations": { - }, - "suggestions": { - }, - "conflicting": { - }, - "providing": { - }, - "replacing": { - }, - "attributes": { - }, - "groupings": { - }, - "recipes": { - }, - "version": "0.3.2" -}