vagrant-niftycloud 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c1d39766870a53dd54b93e45b3b396cb44345a53
4
+ data.tar.gz: 1afdd84531a88a4d2258524c639ff8063e130bc5
5
+ SHA512:
6
+ metadata.gz: 41fbc0d7f907b684f158a2e68c2890a8401097a048e51098d1df9beed0f26f414f56324fcb8f84d1c7d048a3796522566ba300de1f1ba6b091711c2d3cbb9a20
7
+ data.tar.gz: 59ef9322df75acb17a88abb3eab5ddf594ecf338d8481dcf57706eab99ccfe64425936cdfdfad90d735f3c10b6f12b09236e2b2cf769a2ca488571a6766b0d9f
@@ -0,0 +1 @@
1
+ 2.4.1
@@ -1,3 +1,8 @@
1
+ ## 0.4.0 (Mar 12, 2018)
2
+
3
+ * Windows/Cygwin環境下でrsyncが正しく動作しない問題を修正 #12 @s-tomura thanks!
4
+ * ニフクラの新タイプのサーバをサポートするため、Nifty Cloud SDKのバージョンをアップデート #9 @s-tomura thanks!
5
+
1
6
  ## 0.3.0 (Aug 7, 2013)
2
7
 
3
8
  * ニフティクラウドの[サーバ起動時スクリプト](http://cloud.nifty.com/service/svscript.htm)を正式サポート
data/README.md CHANGED
@@ -32,7 +32,7 @@ vagrant upを実行する前に、VirtualBox等でVagrantを使用する時と
32
32
 
33
33
  自分でboxファイルを作成するか、こちらで用意しているboxファイルを使用して、任意の名前でダミーのboxを追加して下さい。
34
34
 
35
- ```
35
+ ```sh
36
36
  $ vagrant plugin install vagrant-niftycloud
37
37
  $ vagrant box add dummy https://github.com/sakama/vagrant-niftycloud/raw/master/dummy.box
38
38
  ```
@@ -55,7 +55,7 @@ chef-soloやchef-clientを予めインストールしておくかどうかはケ
55
55
 
56
56
  vagrant up時に[vagrant-omnibus](https://github.com/schisamo/vagrant-omnibus)を使うという手もあります。
57
57
 
58
- ```
58
+ ```sh
59
59
  ## rootで実行
60
60
  # groupadd vagrant
61
61
  # useradd vagrant -g vagrant -G wheel
@@ -88,7 +88,7 @@ Vagrantfileを以下のような内容で作成します。
88
88
 
89
89
  Vagrantfileの`config.vm.provider`ブロックで各種パラメータを指定して下さい。
90
90
 
91
- ```
91
+ ```ruby
92
92
  Vagrant.configure("2") do |config|
93
93
  config.vm.box = "dummy"
94
94
 
@@ -109,7 +109,7 @@ end
109
109
 
110
110
  ### コマンド
111
111
 
112
- ```
112
+ ```sh
113
113
 
114
114
  # サーバ立ち上げ、provisioningの実行
115
115
  $ vagrant up --provider=niftycloud
@@ -178,7 +178,7 @@ VirtualBoxやVMWare Fusion向けの数GBあるboxと比較すると遙かに軽
178
178
  上記のパラメータはVagrantfile中で以下のように設定することができます。
179
179
 
180
180
 
181
- ```
181
+ ```ruby
182
182
  Vagrant.configure("2") do |config|
183
183
  # ... other stuff
184
184
 
@@ -194,7 +194,7 @@ end
194
194
  記述は以下のようになります。
195
195
 
196
196
 
197
- ```
197
+ ```ruby
198
198
  Vagrant.configure("2") do |config|
199
199
  # ... other stuff
200
200
 
@@ -233,7 +233,7 @@ zone_configブロックでリージョン/ゾーン特有の設定を指定し
233
233
 
234
234
  以下のコマンドを実行するか、.bashrcや.zshrc等に追記するなどして下さい。
235
235
 
236
- ```
236
+ ```sh
237
237
  # 東日本リージョンでAPI最新版を使用
238
238
  export NIFTY_CLOUD_ENDPOINT_URL='https://east-1.cp.cloud.nifty.com/api/'
239
239
  # 西日本リージョンでAPI最新版を使用
@@ -245,7 +245,7 @@ export NIFTY_CLOUD_ENDPOINT_URL='https://west-1.cp.cloud.nifty.com/api/'
245
245
 
246
246
  以下のように指定して下さい。
247
247
 
248
- ```
248
+ ```ruby
249
249
  Vagrant.configure("2") do |config|
250
250
  # ... other stuff
251
251
 
@@ -276,13 +276,13 @@ Vagrantの`config.vm.network`で設定可能なネットワーク機能につい
276
276
 
277
277
  `vagrant-niftycloud`プラグインをこのレポジトリからgit cloneした後、[Bundler](http://gembundler.com) を使用して必要なgem等のインストールを行なって下さい。
278
278
 
279
- ```
279
+ ```sh
280
280
  $ bundle
281
281
  ```
282
282
 
283
283
  上記コマンド実行後、以下のコマンドにより`rake`を使用したユニットテストを実行することができます。
284
284
 
285
- ```
285
+ ```sh
286
286
  $ bundle exec rake
287
287
  ```
288
288
 
@@ -294,7 +294,7 @@ $ bundle exec rake
294
294
  * bundle execコマンドにより実行
295
295
 
296
296
 
297
- ```
297
+ ```sh
298
298
  $ bundle exec vagrant up --provider=niftycloud
299
299
  ```
300
300
 
@@ -26,6 +26,13 @@ module VagrantPlugins
26
26
  hostpath = File.expand_path(data[:hostpath], env[:root_path])
27
27
  guestpath = data[:guestpath]
28
28
 
29
+ private_key_paths = ssh_info[:private_key_path]
30
+ private_key_path = private_key_paths[0]
31
+ if Vagrant::Util::Platform.windows? && ENV['PATH'].include?("cygwin")
32
+ hostpath = hostpath.gsub(/\A(\w):/,'/cygdrive/\1')
33
+ private_key_path = private_key_path.gsub(/\A(\w):/,'/cygdrive/\1')
34
+ end
35
+
29
36
  # Make sure there is a trailing slash on the host path to
30
37
  # avoid creating an additional directory with rsync
31
38
  hostpath = "#{hostpath}/" if hostpath !~ /\/$/
@@ -43,7 +50,7 @@ module VagrantPlugins
43
50
  command = [
44
51
  "rsync", "--verbose", "--archive", "-z",
45
52
  "--exclude", ".vagrant/", "--exclude", ".git/",
46
- "-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i '#{ssh_info[:private_key_path]}'",
53
+ "-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i '#{private_key_path}'",
47
54
  hostpath,
48
55
  "#{ssh_info[:username]}@#{ssh_info[:host]}:#{guestpath}"]
49
56
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module NiftyCloud
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require "vagrant-niftycloud/config"
2
+ require 'rspec/its'
2
3
 
3
4
  describe VagrantPlugins::NiftyCloud::Config do
4
5
  let(:instance) { described_class.new }
@@ -16,10 +16,9 @@ Gem::Specification.new do |s|
16
16
  s.rubyforge_project = "vagrant-nifycloud"
17
17
 
18
18
  s.add_development_dependency "rake"
19
- s.add_development_dependency "rspec-core", "~> 2.12.2"
20
- s.add_development_dependency "rspec-expectations", "~> 2.12.1"
21
- s.add_development_dependency "rspec-mocks", "~> 2.12.1"
22
- s.add_dependency "nifty-cloud-sdk", ">= 1.7"
19
+ s.add_development_dependency "rspec", "3.7.0"
20
+ s.add_development_dependency "rspec-its"
21
+ s.add_dependency "nifty-cloud-sdk", "1.11.beta7"
23
22
 
24
23
  # The following block of code determines the files that should be included
25
24
  # in the gem. It does this by reading all the files in the directory where
@@ -0,0 +1,59 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="jdk" jdkName="rbenv: 2.4.1" jdkType="RUBY_SDK" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.3, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
9
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
10
+ <orderEntry type="library" scope="PROVIDED" name="childprocess (v0.6.3, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.20170404, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="erubis (v2.7.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.23, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="gssapi (v1.2.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="gyoku (v1.3.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="hashicorp-checkpoint (v0.1.5, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.3, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="httpclient (v2.8.3, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.8.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="listen (v3.1.5, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="little-plugger (v1.1.4, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="log4r (v1.1.10, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="logging (v2.2.2, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2016.0521, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.13.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="net-scp (v1.2.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="net-sftp (v2.1.2, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="net-ssh (v4.2.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="netrc (v0.11.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="nifty-cloud-sdk (v1.11.beta7, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="nori (v2.6.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="rake (v12.3.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.10.2, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.9.10, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="rb-kqueue (v0.2.5, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v2.0.2, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.7.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.7.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
41
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.7.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.7.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
43
+ <orderEntry type="library" scope="PROVIDED" name="ruby_dep (v1.3.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
44
+ <orderEntry type="library" scope="PROVIDED" name="rubyntlm (v0.6.2, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
45
+ <orderEntry type="library" scope="PROVIDED" name="rubyzip (v1.2.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
46
+ <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
47
+ <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.5, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
48
+ <orderEntry type="library" scope="PROVIDED" name="vagrant (v2.0.3.dev@0b9212, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
49
+ <orderEntry type="library" scope="PROVIDED" name="wdm (v0.1.1, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
50
+ <orderEntry type="library" scope="PROVIDED" name="winrm (v2.2.3, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
51
+ <orderEntry type="library" scope="PROVIDED" name="winrm-elevated (v1.1.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
52
+ <orderEntry type="library" scope="PROVIDED" name="winrm-fs (v1.2.0, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
53
+ <orderEntry type="library" scope="PROVIDED" name="xml-simple (v1.1.5, rbenv: 2.4.1, vagrant-niftycloud) [gem]" level="application" />
54
+ </component>
55
+ <component name="RModuleSettingsStorage">
56
+ <LOAD_PATH number="0" />
57
+ <I18N_FOLDERS number="1" string0="$MODULE_DIR$/locales" />
58
+ </component>
59
+ </module>
metadata CHANGED
@@ -1,107 +1,91 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-niftycloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
5
- prerelease:
4
+ version: 0.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Satoshi Akama
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-07 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
- name: rspec-core
28
+ name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - '='
36
32
  - !ruby/object:Gem::Version
37
- version: 2.12.2
33
+ version: 3.7.0
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - '='
44
39
  - !ruby/object:Gem::Version
45
- version: 2.12.2
40
+ version: 3.7.0
46
41
  - !ruby/object:Gem::Dependency
47
- name: rspec-expectations
42
+ name: rspec-its
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
- version: 2.12.1
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 2.12.1
62
- - !ruby/object:Gem::Dependency
63
- name: rspec-mocks
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 2.12.1
47
+ version: '0'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
- - - ~>
52
+ - - ">="
76
53
  - !ruby/object:Gem::Version
77
- version: 2.12.1
54
+ version: '0'
78
55
  - !ruby/object:Gem::Dependency
79
56
  name: nifty-cloud-sdk
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
- - - ! '>='
59
+ - - '='
84
60
  - !ruby/object:Gem::Version
85
- version: '1.7'
61
+ version: 1.11.beta7
86
62
  type: :runtime
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
- - - ! '>='
66
+ - - '='
92
67
  - !ruby/object:Gem::Version
93
- version: '1.7'
68
+ version: 1.11.beta7
94
69
  description: Enables Vagrant to manage machines in Nifty Cloud.
95
70
  email: satoshiakama@gmail.com
96
71
  executables: []
97
72
  extensions: []
98
73
  extra_rdoc_files: []
99
74
  files:
75
+ - ".gitignore"
76
+ - ".ruby-version"
77
+ - ".travis.yml"
100
78
  - CHANGELOG.md
79
+ - Gemfile
80
+ - LICENSE
81
+ - README.md
82
+ - Rakefile
83
+ - Vagrantfile.chef.sample
101
84
  - dummy.box
102
- - example_box/metadata.json
103
85
  - example_box/README.md
104
- - Gemfile
86
+ - example_box/metadata.json
87
+ - lib/vagrant-niftycloud.rb
88
+ - lib/vagrant-niftycloud/action.rb
105
89
  - lib/vagrant-niftycloud/action/connect_niftycloud.rb
106
90
  - lib/vagrant-niftycloud/action/is_created.rb
107
91
  - lib/vagrant-niftycloud/action/message_already_created.rb
@@ -115,7 +99,6 @@ files:
115
99
  - lib/vagrant-niftycloud/action/sync_folders.rb
116
100
  - lib/vagrant-niftycloud/action/terminate_instance.rb
117
101
  - lib/vagrant-niftycloud/action/timed_provision.rb
118
- - lib/vagrant-niftycloud/action.rb
119
102
  - lib/vagrant-niftycloud/config.rb
120
103
  - lib/vagrant-niftycloud/errors.rb
121
104
  - lib/vagrant-niftycloud/plugin.rb
@@ -123,42 +106,32 @@ files:
123
106
  - lib/vagrant-niftycloud/servers/servers.rb
124
107
  - lib/vagrant-niftycloud/util/timer.rb
125
108
  - lib/vagrant-niftycloud/version.rb
126
- - lib/vagrant-niftycloud.rb
127
- - LICENSE
128
109
  - locales/en.yml
129
- - Rakefile
130
- - README.md
131
110
  - spec/vagrant-niftycloud/config_spec.rb
132
111
  - vagrant-niftycloud.gemspec
133
- - Vagrantfile.chef.sample
134
- - .gitignore
135
- - .travis.yml
112
+ - vagrant-niftycloud.iml
136
113
  homepage: https://github.com/sakama/vagrant-niftycloud
137
114
  licenses:
138
115
  - MIT
116
+ metadata: {}
139
117
  post_install_message:
140
118
  rdoc_options: []
141
119
  require_paths:
142
120
  - lib
143
121
  required_ruby_version: !ruby/object:Gem::Requirement
144
- none: false
145
122
  requirements:
146
- - - ! '>='
123
+ - - ">="
147
124
  - !ruby/object:Gem::Version
148
125
  version: '0'
149
- segments:
150
- - 0
151
- hash: 647630623550404957
152
126
  required_rubygems_version: !ruby/object:Gem::Requirement
153
- none: false
154
127
  requirements:
155
- - - ! '>='
128
+ - - ">="
156
129
  - !ruby/object:Gem::Version
157
130
  version: 0.1.0
158
131
  requirements: []
159
132
  rubyforge_project: vagrant-nifycloud
160
- rubygems_version: 1.8.23
133
+ rubygems_version: 2.6.13
161
134
  signing_key:
162
- specification_version: 3
135
+ specification_version: 4
163
136
  summary: Enables Vagrant to manage machines in Nifty Cloud
164
137
  test_files: []