opskeleton 0.5.0 → 0.5.1

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: 3fa4623b72e3b36881ffec42eae4559298c30752
4
- data.tar.gz: 2a3acc87e6dbf08893cc6ab979b15fdd77282721
3
+ metadata.gz: 686cf3d0a07e85e00ab8aec8f5bb60090b536770
4
+ data.tar.gz: d5b8464c039cf0034e947f10f334d4d54343058f
5
5
  SHA512:
6
- metadata.gz: 1d883cd8eb0376787c2fe2410c3e2b12b458fe87487436843e09c4f9da7db840ec3757243d3e67118447b6e3d07cecf53e8f334c0fcbccd7ca9c838ed210d520
7
- data.tar.gz: 2c949cfabd31d3705a1f5df2604f1d23f8da4286a1dc78bac8ec7af1852f96884ea79276ecbc9a5906fac0b2ec23bce746ffe884993b3c2a5475e4e1348b59bd
6
+ metadata.gz: dc71a15222e5fa3fa5500028b4a82acde1ad9801a604e0927bf4889f76bbbac1badf31891854c98307224e5e543a12e50152a1c7c390c8bba76e1dd46f97fafa
7
+ data.tar.gz: 881a929134d97a0c275db42d507e07f22db9713ce62c0b4e58cd9124a0be86caceec5a50bd3a640a4a0da706e5b2fffdc382938bb1b051286763e97a128f2e57
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opskeleton (0.5.0)
4
+ opskeleton (0.5.1)
5
5
  bintray_deploy
6
6
  thor
7
7
 
@@ -39,6 +39,7 @@ module Opsk
39
39
  def package
40
40
  ignored = IO.readlines('.gitignore').map(&:chomp)
41
41
  ignored.delete('modules')
42
+ ignored.delete('cookbooks')
42
43
  excludes = ignored.map{|f| "'#{f}'"}.join(" --exclude=") << ' --exclude-backups --exclude-vcs --exclude=pkg'
43
44
  tar = "#{artifact}.tar.gz"
44
45
  input = artifact
@@ -1,3 +1,3 @@
1
1
  module Opskeleton
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -9,6 +9,9 @@ class ChefPackageTest < MiniTest::Unit::TestCase
9
9
 
10
10
  def setup
11
11
  Opsk::Root.start ['generate_chef', 'foo', 'bar']
12
+ Dir.mkdir('foo-sandbox/cookbooks')
13
+ FileUtils.touch('foo-sandbox/cookbooks/1')
14
+
12
15
  end
13
16
 
14
17
  def teardown
@@ -22,13 +25,14 @@ class ChefPackageTest < MiniTest::Unit::TestCase
22
25
  end
23
26
 
24
27
  def test_build
25
- with_cwd 'foo-sandbox' do
26
- Opsk::Root.start ['package']
27
- end
28
- assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/Cheffile')
29
- assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/roles/foo.rb')
30
- assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/dna.json')
31
- assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1.tar.gz')
28
+ with_cwd 'foo-sandbox' do
29
+ Opsk::Root.start ['package']
30
+ end
31
+ assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/Cheffile')
32
+ assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/roles/foo.rb')
33
+ assert Dir.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/cookbooks')
34
+ assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1/dna.json')
35
+ assert File.exists?('foo-sandbox/pkg/foo-sandbox-0.0.1.tar.gz')
32
36
  end
33
37
 
34
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opskeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - narkisr