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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fffbf434cf7f40a3ca68b0f87136f24f16f242f
4
- data.tar.gz: da8c365f6eb8ffbb650e59004b6ed2a992b7c1f7
3
+ metadata.gz: d7c06023d1e5ad460236e8e55c9e94197bdf69b8
4
+ data.tar.gz: a8a377919008eb28d27abb398ba67eb3af94b28a
5
5
  SHA512:
6
- metadata.gz: 6874446ba39fc01f66e92dd921484ee6f0cfbf139b5195e9959f9b12196c600b65930dde8608510bd6d2c022e874980d4b48dbb3c87171626a1147bd0726b352
7
- data.tar.gz: 9a6d0c5a1f25c82844e9eb16b95c1366f3f72ae59d9c6a195fe62c5ca92d89fe607971a3ebda4b19977afbae09dd76629323a4e29f3461626b4634862b848ccb
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
- platforms = %w[sl6 ubuntu1404]
9
+ targets = %w[sl6 ubuntu1404]
10
+
11
+ task all: targets
12
12
  task default: :all
13
13
 
14
- platforms.each do |platform|
15
- desc "Run serverspec tests in #{platform}"
16
- RSpec::Core::RakeTask.new('all') do |t|
17
- ENV['TARGET_HOST'] = platform
18
- t.pattern = "spec/*_spec.rb"
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 "itamae", '~> 1.2.3'
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', '~> 10.0'
25
- spec.add_development_dependency "serverspec", '~> 2.13.0'
24
+ spec.add_development_dependency 'rake'
25
+ spec.add_development_dependency "serverspec", '>= 2.24'
26
26
  end
@@ -0,0 +1,4 @@
1
+ # encoding: utf-8
2
+
3
+ include_recipe 'rtn_git::system'
4
+
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
+ Itamae.logger.warn '`include_recipe "rtn_git::source"` is deprecated. please use `include_recipe "rtn_git"`'
3
4
  include_recipe 'rtn_git::system'
4
5
 
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module RtnGit
5
- VERSION = "0.1.3"
5
+ VERSION = '0.1.4'
6
6
  end
7
7
  end
8
8
  end
@@ -5,5 +5,5 @@ when %r(debian|ubuntu)
5
5
  execute 'apt-get update -y'
6
6
  end
7
7
 
8
- include_recipe 'rtn_git::system'
8
+ include_recipe 'rtn_git'
9
9
 
@@ -17,11 +17,12 @@ end
17
17
 
18
18
  host = ENV['TARGET_HOST']
19
19
 
20
- `vagrant up #{host}`
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} > #{config.path}`
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.3
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-03-25 00:00:00.000000000 Z
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.3
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.3
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: '10.0'
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: '10.0'
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.13.0
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.13.0
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.