blue 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/blue/version.rb +1 -1
- data/lib/capistrano/gems.rb +17 -1
- metadata +3 -3
data/lib/blue/version.rb
CHANGED
data/lib/capistrano/gems.rb
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
module Blue
|
2
2
|
class Gems
|
3
|
+
|
4
|
+
@@required_gems = [
|
5
|
+
'bundler',
|
6
|
+
'shadow_puppet',
|
7
|
+
'blue',
|
8
|
+
'rake'
|
9
|
+
]
|
10
|
+
|
11
|
+
def self.required_gems
|
12
|
+
@@required_gems
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.require(gem)
|
16
|
+
@@required_gems << gem
|
17
|
+
end
|
18
|
+
|
3
19
|
def self.load(capistrano_config)
|
4
20
|
capistrano_config.load do
|
5
21
|
|
@@ -7,7 +23,7 @@ module Blue
|
|
7
23
|
namespace :setup do
|
8
24
|
desc "Install required gems"
|
9
25
|
task :gems do
|
10
|
-
sudo "gem install
|
26
|
+
sudo "gem install #{Blue::Gems.required_gems.join(' ')} --no-ri --no-rdoc"
|
11
27
|
end
|
12
28
|
end
|
13
29
|
end
|
metadata
CHANGED