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 CHANGED
@@ -6,6 +6,7 @@ module Blue
6
6
 
7
7
  include Blue::Template
8
8
  include Blue::Ntpd
9
+ include Blue::Apt
9
10
 
10
11
  def self.inherited(klass)
11
12
  Blue.register_box(klass)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Blue
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -0,0 +1,4 @@
1
+ deb-src http://archive.ubuntu.com/ubuntu precise main restricted universe
2
+ deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
3
+ deb-src http://security.ubuntu.com/ubuntu precise-security main restricted universe
4
+
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
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-21 00:00:00 Z
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