itamae-plugin-recipe-rtn_git 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +9 -8
- data/itamae-plugin-recipe-rtn_git.gemspec +3 -3
- data/lib/itamae/plugin/recipe/rtn_git/default.rb +4 -0
- data/lib/itamae/plugin/recipe/rtn_git/source.rb +1 -0
- data/lib/itamae/plugin/recipe/rtn_git/version.rb +1 -1
- data/spec/role.rb +1 -1
- data/spec/spec_helper.rb +3 -2
- metadata +16 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7c06023d1e5ad460236e8e55c9e94197bdf69b8
|
4
|
+
data.tar.gz: a8a377919008eb28d27abb398ba67eb3af94b28a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d51adb992448dc5a5044d04185b3f9376b3cc688decbec151889759620c8ec354a7e61562658b311292a506ecf20422d5128366a8831414cde1f0e9306e759a
|
7
|
+
data.tar.gz: e638b47a2ad25f6ba26649a8a295a0df7f1961043f6958d98c3f50484c8a503678f26c74a67583c4ccff62e2f363133996134bc4f5010604834c08a67dc0a609
|
data/Rakefile
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require 'rake'
|
4
2
|
require 'bundler/gem_tasks'
|
5
3
|
require 'rspec/core/rake_task'
|
@@ -8,14 +6,17 @@ task spec: 'spec:all'
|
|
8
6
|
task default: :spec
|
9
7
|
|
10
8
|
namespace :spec do
|
11
|
-
|
9
|
+
targets = %w[sl6 ubuntu1404]
|
10
|
+
|
11
|
+
task all: targets
|
12
12
|
task default: :all
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
targets.each do |target|
|
15
|
+
original_target = target == '_default' ? target[1..-1] : target
|
16
|
+
desc "Run serverspec tests to #{original_target}"
|
17
|
+
RSpec::Core::RakeTask.new(target.to_sym) do |t|
|
18
|
+
ENV['TARGET_HOST'] = original_target
|
19
|
+
t.pattern = 'spec/*_spec.rb'
|
19
20
|
end
|
20
21
|
end
|
21
22
|
end
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency
|
21
|
+
spec.add_dependency 'itamae', '>= 1.5.2'
|
22
22
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
24
|
-
spec.add_development_dependency 'rake'
|
25
|
-
spec.add_development_dependency "serverspec", '
|
24
|
+
spec.add_development_dependency 'rake'
|
25
|
+
spec.add_development_dependency "serverspec", '>= 2.24'
|
26
26
|
end
|
data/spec/role.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -17,11 +17,12 @@ end
|
|
17
17
|
|
18
18
|
host = ENV['TARGET_HOST']
|
19
19
|
|
20
|
-
|
20
|
+
system("vagrant up #{host}")
|
21
21
|
system("bundle exec itamae ssh -h #{host} --vagrant '#{File.expand_path("../role.rb", __FILE__)}' -j '#{File.expand_path("../node.json", __FILE__)}' --log-level=#{ENV['LOG_LEVEL'] || 'INFO'}")
|
22
22
|
|
23
23
|
config = Tempfile.new('', Dir.tmpdir)
|
24
|
-
`vagrant ssh-config #{host}
|
24
|
+
config.write(`vagrant ssh-config #{host}`)
|
25
|
+
config.close
|
25
26
|
|
26
27
|
options = Net::SSH::Config.for(host, [config.path])
|
27
28
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-rtn_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ru/MuckRu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.2
|
19
|
+
version: 1.5.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.2
|
26
|
+
version: 1.5.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,30 +42,30 @@ dependencies:
|
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: serverspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: '2.24'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: '2.24'
|
69
69
|
description: Itamae recipe plugin for git.
|
70
70
|
email:
|
71
71
|
- ru_shalm@hazimu.com
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- Rakefile
|
81
81
|
- Vagrantfile
|
82
82
|
- itamae-plugin-recipe-rtn_git.gemspec
|
83
|
+
- lib/itamae/plugin/recipe/rtn_git/default.rb
|
83
84
|
- lib/itamae/plugin/recipe/rtn_git/source.rb
|
84
85
|
- lib/itamae/plugin/recipe/rtn_git/system.rb
|
85
86
|
- lib/itamae/plugin/recipe/rtn_git/version.rb
|
@@ -107,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
108
|
version: '0'
|
108
109
|
requirements: []
|
109
110
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.4.5
|
111
|
+
rubygems_version: 2.4.5.1
|
111
112
|
signing_key:
|
112
113
|
specification_version: 4
|
113
114
|
summary: Itamae recipe plugin for git.
|