puppet-moddeps 0.3.2 → 2.0.0

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.
@@ -1,2 +0,0 @@
1
- service_name: travis-ci
2
-
@@ -1,107 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- puppet-moddeps (0.3.2)
5
- json (~> 1.8, >= 1.8.1)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- celluloid (0.16.0)
11
- timers (~> 4.0.0)
12
- codeclimate-test-reporter (0.4.3)
13
- simplecov (>= 0.7.1, < 1.0.0)
14
- coderay (1.1.0)
15
- coveralls (0.7.2)
16
- multi_json (~> 1.3)
17
- rest-client (= 1.6.7)
18
- simplecov (>= 0.7)
19
- term-ansicolor (= 1.2.2)
20
- thor (= 0.18.1)
21
- diff-lcs (1.2.5)
22
- docile (1.1.5)
23
- ffi (1.9.6)
24
- formatador (0.2.5)
25
- guard (2.10.5)
26
- formatador (>= 0.2.4)
27
- listen (~> 2.7)
28
- lumberjack (~> 1.0)
29
- nenv (~> 0.1)
30
- pry (>= 0.9.12)
31
- thor (>= 0.18.1)
32
- guard-compat (1.2.0)
33
- guard-rspec (4.5.0)
34
- guard (~> 2.1)
35
- guard-compat (~> 1.1)
36
- rspec (>= 2.99.0, < 4.0)
37
- hitimes (1.2.2)
38
- json (1.8.1)
39
- listen (2.8.4)
40
- celluloid (>= 0.15.2)
41
- rb-fsevent (>= 0.9.3)
42
- rb-inotify (>= 0.9)
43
- lumberjack (1.0.9)
44
- method_source (0.8.2)
45
- mime-types (2.4.3)
46
- multi_json (1.10.1)
47
- nenv (0.1.1)
48
- pry (0.10.1)
49
- coderay (~> 1.1.0)
50
- method_source (~> 0.8.1)
51
- slop (~> 3.4)
52
- pry-nav (0.2.4)
53
- pry (>= 0.9.10, < 0.11.0)
54
- pry-remote (0.1.8)
55
- pry (~> 0.9)
56
- slop (~> 3.0)
57
- rake (10.4.2)
58
- rb-fsevent (0.9.4)
59
- rb-inotify (0.9.5)
60
- ffi (>= 0.5.0)
61
- rest-client (1.6.7)
62
- mime-types (>= 1.16)
63
- rspec (3.1.0)
64
- rspec-core (~> 3.1.0)
65
- rspec-expectations (~> 3.1.0)
66
- rspec-mocks (~> 3.1.0)
67
- rspec-core (3.1.7)
68
- rspec-support (~> 3.1.0)
69
- rspec-expectations (3.1.2)
70
- diff-lcs (>= 1.2.0, < 2.0)
71
- rspec-support (~> 3.1.0)
72
- rspec-mocks (3.1.3)
73
- rspec-support (~> 3.1.0)
74
- rspec-nc (0.2.0)
75
- rspec (>= 2.9)
76
- terminal-notifier (>= 1.4)
77
- rspec-support (3.1.2)
78
- simplecov (0.9.1)
79
- docile (~> 1.1.0)
80
- multi_json (~> 1.0)
81
- simplecov-html (~> 0.8.0)
82
- simplecov-html (0.8.0)
83
- slop (3.6.0)
84
- term-ansicolor (1.2.2)
85
- tins (~> 0.8)
86
- terminal-notifier (1.6.2)
87
- thor (0.18.1)
88
- timers (4.0.1)
89
- hitimes
90
- tins (0.13.2)
91
-
92
- PLATFORMS
93
- ruby
94
-
95
- DEPENDENCIES
96
- bundler (~> 1.7)
97
- codeclimate-test-reporter (~> 0.4)
98
- coveralls (~> 0.7)
99
- guard (~> 2.10)
100
- guard-rspec (~> 4.5)
101
- pry (~> 0.10)
102
- pry-nav (~> 0.2)
103
- pry-remote (~> 0.1)
104
- puppet-moddeps!
105
- rake (~> 10.4)
106
- rspec (~> 3.1)
107
- rspec-nc (~> 0.2)
@@ -1,20 +0,0 @@
1
- #!/bin/bash
2
-
3
- chmod 777 /etc/puppet/modules
4
-
5
- moddir='/etc/puppet/modules/fake_private_module'
6
-
7
- if [ -d "$moddir" ]; then rm -rf "$moddir"; fi
8
-
9
- mkdir "$moddir"
10
-
11
- cat > "$moddir/metadata.json" <<EOF
12
- {
13
- "dependencies": [
14
- {"name":"puppetlabs/stdlib","version_requirement":">= 2.4.0"},
15
- {"name":"puppetlabs/concat","version_requirement":">= 1.1.1"},
16
- {"name":"puppetlabs/firewall","version_requirement":">= 1.3.0"}
17
- ]
18
- }
19
-
20
- EOF
@@ -1,21 +0,0 @@
1
- #!/bin/bash
2
-
3
- ## This script should be executed as the vagrant user
4
-
5
- if [ -f '/vagrant/GitConfig' ]; then
6
- cp /vagrant/GitConfig ~/.gitconfig
7
- fi
8
-
9
- # Setup RVM
10
- gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
11
- curl -L get.rvm.io | bash -s stable
12
- source ~/.profile
13
-
14
- # Setup Ruby 1.9.3
15
- rvm install 1.9.3
16
- rvm use 1.9.3
17
-
18
- # Setup project
19
- gem install bundler --no-ri --no-rdoc
20
- cd puppet-moddeps
21
- bundle install
@@ -1,56 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Puppet::Moddeps do
4
-
5
- describe '.installDeps(puppet_module)' do
6
-
7
- context 'with no parameters' do
8
- it 'should print usage info' do
9
-
10
- expect { Puppet::Moddeps.installDeps() }.to output(/Usage.*/).to_stdout
11
- end
12
- end
13
-
14
- context 'with two or more parameters' do
15
- it 'should print usage info' do
16
- expect { Puppet::Moddeps.installDeps('arg1', 'arg2') }.to output(/Usage.*/).to_stdout
17
- end
18
- end
19
-
20
- context 'with one parameter' do
21
- it 'should print usage if multiple arguments come in as an array' do
22
- params = ['arg1', 'arg2']
23
- expect { Puppet::Moddeps.installDeps(params) }.to output(/Usage.*/).to_stdout
24
- end
25
-
26
- it 'should print usage if an empty array is passed in' do
27
- params = []
28
- expect { Puppet::Moddeps.installDeps(params) }.to output(/Usage.*/).to_stdout
29
- end
30
-
31
- it 'should fail if the parameter is not an installed module' do
32
- expect { Puppet::Moddeps.installDeps('fake_missing_module') }.to output(/Can\'t find fake_missing_module in.*/).to_stdout
33
- end
34
-
35
- it "should parse metadata.json" do
36
- deps = Puppet::Moddeps.parseMetadata('fake_private_module')
37
- expect(deps).to include('puppetlabs-stdlib', 'puppetlabs-concat', 'puppetlabs-firewall')
38
- end
39
-
40
- it "should install each module in provided array" do
41
- Puppet::Moddeps.installDeps('fake_private_module')
42
- basedir = '/etc/puppet/modules'
43
- expect("#{basedir}/stdlib").to exist
44
- expect("#{basedir}/concat").to exist
45
- expect("#{basedir}/firewall").to exist
46
- end
47
-
48
- end
49
-
50
- end # end describe '.installDeps(puppet_module)'
51
-
52
- #after(:all) do
53
- # %x(sudo rm -rf /etc/puppet/modules/*)
54
- #end
55
-
56
- end