opskeleton 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d95a0b8e5bde4b613a48c45caa8b4cf85b1388f8
4
- data.tar.gz: e4c76e9287363d91b0c514e7d757558d0f999293
3
+ metadata.gz: 49845072d32dfeca817fda79d08e58b8b6aed707
4
+ data.tar.gz: 422e0d8d2077cd3758bb6f7fd594b7d1548db994
5
5
  SHA512:
6
- metadata.gz: 4bbe0984a5e2b88da758154e0e642baae5c1331445faef19b7b863542d204917f2ab565881803403252814601af99ca07d8b77ab0b0ab562216398929b7afa8d
7
- data.tar.gz: 6aad045195cc81798c27802cc97ef4111c814602c5c22504e0dcbcd1edb252417ee3b470ab20a4047c4ca2ec73ef37df23eff590b3ab3393119e091925ddb2da
6
+ metadata.gz: ae9b800a90e235e32afc7909a18a8864f9c1601ed8a5351ec847c3023a8bf36dbf86ff59c4b3f2da22f8540710d507ecc681b5caada781e5c91b14f3f5d5e94f
7
+ data.tar.gz: 191fd195d0881ef38fd312f533c44eff64d7c448eed4ceb1b0e1b164b60ccb1647d80b525e82acc49e00a88114a265651ecece69df458a0e3fe9e2dcc19d93ce
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opskeleton (0.5.2)
4
+ opskeleton (0.5.3)
5
5
  bintray_deploy
6
6
  thor
7
7
 
@@ -36,6 +36,11 @@ module Opsk
36
36
  template('templates/ruby-version.erb', "#{path}/.ruby-version")
37
37
  end
38
38
 
39
+ def create_environment
40
+ empty_directory("#{path}/environments")
41
+ copy_file('templates/chef/environments/dev.rb', "#{path}/environments/dev.rb")
42
+ end
43
+
39
44
  def create_chef_base
40
45
  empty_directory("#{path}/static-cookbooks/")
41
46
  copy_file('templates/chef/Cheffile', "#{path}/Cheffile")
@@ -1,3 +1,3 @@
1
1
  module Opskeleton
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
@@ -0,0 +1,4 @@
1
+ name 'dev'
2
+ description 'The development environment'
3
+ default_attributes '' => { }
4
+
@@ -1 +1 @@
1
- chef-solo -c solo.rb -j dna.json
1
+ chef-solo -c solo.rb -j dna.json -E $1
@@ -3,3 +3,4 @@ cookbook_path ["#{Dir.pwd}/cookbooks","#{Dir.pwd}/static-cookbooks"]
3
3
  role_path "#{Dir.pwd}/roles/"
4
4
  log_level :info
5
5
  log_location STDOUT
6
+ environment_path "#{Dir.pwd}/environments"
@@ -20,6 +20,8 @@ Vagrant.configure("2") do |config|
20
20
  chef.cookbooks_path = ['static-cookbooks', 'cookbooks']
21
21
  chef.roles_path = 'roles'
22
22
  chef.add_role('<%=name%>')
23
+ chef.environment = env
24
+ chef.environments_path = 'environments'
23
25
  end
24
26
 
25
27
  end
@@ -32,7 +32,9 @@ class ChefPackageTest < MiniTest::Unit::TestCase
32
32
  assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/roles/foo.rb')
33
33
  assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/boot.sh')
34
34
  assert Dir.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/cookbooks')
35
+ assert Dir.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/environments')
35
36
  assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/dna.json')
37
+ assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/environments/dev.rb')
36
38
  assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1.tar.gz')
37
39
  end
38
40
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opskeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - narkisr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -146,6 +146,7 @@ files:
146
146
  - templates/chef/Rakefile
147
147
  - templates/chef/boot.sh
148
148
  - templates/chef/dna.json.erb
149
+ - templates/chef/environments/dev.rb
149
150
  - templates/chef/gemfile
150
151
  - templates/chef/gitignore
151
152
  - templates/chef/roles.erb