blue 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/blue/box.rb +1 -0
- data/lib/blue/plugins/apt.rb +18 -0
- data/lib/blue/version.rb +1 -1
- data/templates/apt.list +4 -0
- metadata +6 -4
data/lib/blue/box.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Blue
|
2
|
+
module Apt
|
3
|
+
|
4
|
+
def apt
|
5
|
+
file "/etc/apt/sources.list.d/apt.list",
|
6
|
+
:ensure => :present,
|
7
|
+
:mode => '744',
|
8
|
+
:content => template(File.join(File.dirname(__FILE__), '..', '..', 'templates', 'apt.list'), binding),
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.included(klass)
|
12
|
+
klass.class_eval do
|
13
|
+
recipe :apt
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
data/lib/blue/version.rb
CHANGED
data/templates/apt.list
ADDED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 9
|
10
|
+
version: 0.1.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Sharpe
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-06-
|
18
|
+
date: 2013-06-28 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: hashie
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/blue/deep_merge.rb
|
114
114
|
- lib/blue/gems.rb
|
115
115
|
- lib/blue/plugins.rb
|
116
|
+
- lib/blue/plugins/apt.rb
|
116
117
|
- lib/blue/plugins/ntpd.rb
|
117
118
|
- lib/blue/railtie.rb
|
118
119
|
- lib/blue/template.rb
|
@@ -127,6 +128,7 @@ files:
|
|
127
128
|
- lib/capistrano/setup.rb
|
128
129
|
- lib/tasks/blue.rake
|
129
130
|
- templates/Capfile
|
131
|
+
- templates/apt.list
|
130
132
|
- templates/blue.yml
|
131
133
|
- templates/box.rb
|
132
134
|
- templates/deploy.rb
|