vagrant-niftycloud 0.1.5 → 0.1.6

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,3 +1,7 @@
1
+ # 0.1.6 (July 29, 2013)
2
+
3
+ * vagrant up直後にCtrl+Cで中断した場合に、vagrant statusでステータスが取得できない問題を修正
4
+
1
5
  # 0.1.5 (July 27, 2013)
2
6
 
3
7
  * gemspecファイルのライセンス表示を追加
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # vagrant-niftycloud
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/vagrant-niftycloud.png)](http://badge.fury.io/rb/vagrant-niftycloud)
4
- [![Build Status](https://travis-ci.org/sakama/vagrant-niftycloud.png?branch=master)](https://travis-ci.org/sakama/vagrant-niftycloud)
5
4
  [![Dependency Status](https://gemnasium.com/sakama/vagrant-niftycloud.png)](https://gemnasium.com/sakama/vagrant-niftycloud)
5
+ [![Build Status](https://travis-ci.org/sakama/vagrant-niftycloud.png)](https://travis-ci.org/sakama/vagrant-niftycloud)
6
+ [![Code Climate](https://codeclimate.com/github/sakama/vagrant-niftycloud.png)](https://codeclimate.com/github/sakama/vagrant-niftycloud)
6
7
 
7
8
  `開発中!8月頭を目処に処理をブラッシュアップします`
8
9
 
@@ -29,7 +30,9 @@ Chef以外の動作確認は行なっていませんが、プラグインで行
29
30
 
30
31
  まずVagrant 1.2以降をインストールして下さい。
31
32
 
32
- vagrant upを実行する前に通常のVagrant使用時と同じようにboxファイルをVagrantに追加する必要があります。
33
+ Vagrantは1.1からgem経由ではなく[パッケージでのインストール](http://downloads.vagrantup.com/)に変わっているので注意してください。
34
+
35
+ vagrant upを実行する前に、VirtualBox等でVagrantを使用する時と同じようにboxファイルをVagrantに追加する必要があります。
33
36
 
34
37
  自分でboxファイルを作成するか、こちらで用意しているboxファイルを使用して、任意の名前でダミーのboxを追加して下さい。
35
38
 
@@ -158,7 +161,7 @@ boxフォーマットは`metadata.json`と`Vagrantfile`をtar.gzで圧縮した
158
161
 
159
162
  VirtualBoxやVMWare Fusion向けの数GBあるboxと比較すると遙かに軽量で、デフォルト設定を記述する場所という位置付けとなっています。
160
163
 
161
- `Vagrantfile` で指定された項目・値はproviderとしてniftycloudを指定した場合のデフォルト値として扱わるため、複数メンバーで作業する場合等はオリジナルのboxを作成しておくと便利です。
164
+ `Vagrantfile` で指定された項目/値はproviderとしてniftycloudを指定した場合のデフォルト値として扱われるため、複数メンバーで作業する場合等はオリジナルのboxを作成しておくと便利です。
162
165
 
163
166
 
164
167
  ## 設定
@@ -269,4 +272,4 @@ $ bundle exec vagrant up --provider=niftycloud
269
272
 
270
273
  ## ライセンス
271
274
 
272
- [vagrant-aws](https://github.com/mitchellh/vagrant-aws) をベースに NIFTY Cloud 向けに修正を加えたものです。 オリジナルに準じて MITライセンス を適用します。
275
+ [vagrant-aws](https://github.com/mitchellh/vagrant-aws) をベースにニフティクラウド向けに修正を加えたものです。 オリジナルに準じて MITライセンス を適用します。
@@ -6,6 +6,7 @@ module VagrantPlugins
6
6
  module NiftyCloud
7
7
  lib_path = Pathname.new(File.expand_path("../vagrant-niftycloud", __FILE__))
8
8
  autoload :Action, lib_path.join("action")
9
+ autoload :Servers, lib_path.join("servers/servers")
9
10
  autoload :Errors, lib_path.join("errors")
10
11
 
11
12
  # This returns the path to the source of this plugin.
@@ -1,11 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
- require "NIFTY"
3
2
  require "log4r"
4
3
 
5
- if !ENV["VAGRANT_LOG"].nil? && ENV["VAGRANT_LOG"].upcase=='DEBUG'
6
- NIFTY::LOG.level = Logger::DEBUG
7
- end
8
-
9
4
  module VagrantPlugins
10
5
  module NiftyCloud
11
6
  module Action
@@ -35,18 +30,18 @@ module VagrantPlugins
35
30
  # http://cloud.nifty.com/api/sdk/rdoc/
36
31
  begin
37
32
  @logger.info("Connecting to NiftyCloud...")
38
- env[:niftycloud_compute] = NIFTY::Cloud::Base.new(niftycloud_config)
33
+ env[:niftycloud_compute] = Servers::Servers.new(niftycloud_config)
39
34
  rescue NIFTY::ConfigurationError => e
40
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudConfigurationError,
35
+ raise Errors::NiftyCloudConfigurationError,
41
36
  :message => e.message
42
37
  rescue NIFTY::ArgumentError => e
43
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudArgumentError,
38
+ raise Errors::NiftyCloudArgumentError,
44
39
  :message => e.message
45
40
  rescue NIFTY::ResponseFormatError => e
46
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseFormatError,
41
+ raise Errors::NiftyCloudResponseFormatError,
47
42
  :message => e.message
48
43
  rescue NIFTY::ResponseError => e
49
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseError,
44
+ raise Errors::NiftyCloudResponseError,
50
45
  :code => e.error_code,
51
46
  :message => e.error_message
52
47
  end
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require "log4r"
2
3
 
3
4
  module VagrantPlugins
@@ -24,20 +25,20 @@ module VagrantPlugins
24
25
  # 例外の定義は以下参照
25
26
  # http://cloud.nifty.com/api/sdk/rdoc/
26
27
  begin
27
- server = niftycloud.describe_instances(:instance_id => machine.id).reservationSet.item.first.instancesSet.item.first
28
+ server = niftycloud.get(machine)
28
29
  # Read the DNS info
29
30
  return {
30
31
  :host => server.ipAddress,
31
32
  :port => 22
32
33
  }
33
34
  rescue NIFTY::ConfigurationError => e
34
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudConfigurationError,
35
+ raise Errors::NiftyCloudConfigurationError,
35
36
  :message => e.message
36
37
  rescue NIFTY::ArgumentError => e
37
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudArgumentError,
38
+ raise Errors::NiftyCloudArgumentError,
38
39
  :message => e.message
39
40
  rescue NIFTY::ResponseFormatError => e
40
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseFormatError,
41
+ raise Errors::NiftyCloudResponseFormatError,
41
42
  :message => e.message
42
43
  rescue NIFTY::ResponseError => e
43
44
  # The machine can't be found
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require "log4r"
2
3
 
3
4
  module VagrantPlugins
@@ -24,7 +25,7 @@ module VagrantPlugins
24
25
  # 例外の定義は以下参照
25
26
  # http://cloud.nifty.com/api/sdk/rdoc/
26
27
  begin
27
- server = niftycloud.describe_instances(:instance_id => machine.id).reservationSet.item.first.instancesSet.item.first
28
+ server = niftycloud.get(machine)
28
29
 
29
30
  state = server.instanceState.name
30
31
  case state
@@ -37,13 +38,13 @@ module VagrantPlugins
37
38
  return state.to_sym
38
39
  end
39
40
  rescue NIFTY::ConfigurationError => e
40
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudConfigurationError,
41
+ raise Errors::NiftyCloudConfigurationError,
41
42
  :message => e.message
42
43
  rescue NIFTY::ArgumentError => e
43
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudArgumentError,
44
+ raise Errors::NiftyCloudArgumentError,
44
45
  :message => e.message
45
46
  rescue NIFTY::ResponseFormatError => e
46
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseFormatError,
47
+ raise Errors::NiftyCloudResponseFormatError,
47
48
  :message => e.message
48
49
  rescue NIFTY::ResponseError => e
49
50
  machine.id = nil
@@ -16,38 +16,21 @@ module VagrantPlugins
16
16
  # 例外の定義は以下参照
17
17
  # http://cloud.nifty.com/api/sdk/rdoc/
18
18
  begin
19
- env[:ui].info(I18n.t("vagrant_niftycloud.resuming"))
20
-
21
- # 起動直後等、resume処理できないステータスの場合一旦待つ
22
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
23
- while server.instanceState.name == 'pending'
24
- sleep 5
25
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
26
- env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
27
- end
28
-
29
- if server.instanceState.name != 'running'
30
- env[:niftycloud_compute].start_instances(:instance_id => env[:machine].id)
31
- while server.instanceState.name != 'running'
32
- sleep 5
33
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
34
- env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
35
- end
36
- end
19
+ env[:niftycloud_compute].start(env)
37
20
 
38
21
  @app.call(env)
39
22
  rescue NIFTY::ConfigurationError => e
40
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudConfigurationError,
23
+ raise Errors::NiftyCloudConfigurationError,
41
24
  :message => e.message
42
25
  rescue NIFTY::ArgumentError => e
43
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudArgumentError,
26
+ raise Errors::NiftyCloudArgumentError,
44
27
  :message => e.message
45
28
  rescue NIFTY::ResponseFormatError => e
46
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseFormatError,
29
+ raise Errors::NiftyCloudResponseFormatError,
47
30
  :message => e.message
48
31
  rescue NIFTY::ResponseError => e
49
32
  ui.error("Could not locate server '#{env[:machine].id}'. Please verify it was provisioned in the current zone.")
50
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseError,
33
+ raise Errors::NiftyCloudResponseError,
51
34
  :code => e.error_code,
52
35
  :message => e.error_message
53
36
  end
@@ -60,21 +60,24 @@ module VagrantPlugins
60
60
  # http://cloud.nifty.com/api/sdk/rdoc/
61
61
  begin
62
62
  # インスタンス立ち上げ開始
63
- server = env[:niftycloud_compute].run_instances(options).instancesSet.item.first
63
+ server = env[:niftycloud_compute].create(options)
64
64
  rescue NIFTY::ConfigurationError => e
65
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudConfigurationError,
65
+ raise Errors::NiftyCloudConfigurationError,
66
66
  :message => e.message
67
67
  rescue NIFTY::ArgumentError => e
68
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudArgumentError,
68
+ raise Errors::NiftyCloudArgumentError,
69
69
  :message => e.message
70
70
  rescue NIFTY::ResponseFormatError => e
71
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseFormatError,
71
+ raise Errors::NiftyCloudResponseFormatError,
72
72
  :message => e.message
73
73
  rescue NIFTY::ResponseError => e
74
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseError,
74
+ raise Errors::NiftyCloudResponseError,
75
75
  :code => e.error_code,
76
76
  :message => e.error_message
77
77
  end
78
+
79
+ # Immediately save the ID since it is created at this point.
80
+ env[:machine].id = instance_id
78
81
 
79
82
  # リトライ回数。サーバステータスがrunningになるまで5秒のintervalでdescribe_instancesを実行するので
80
83
  # タイムアウト秒数/5を上限回数とする
@@ -87,7 +90,7 @@ module VagrantPlugins
87
90
 
88
91
  count += 1
89
92
  sleep 5
90
- server = env[:niftycloud_compute].describe_instances(:instance_id => instance_id).reservationSet.item.first.instancesSet.item.first
93
+ server = env[:niftycloud_compute].get(env)
91
94
  env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
92
95
  if count > tries
93
96
  # Delete the instance
@@ -97,9 +100,6 @@ module VagrantPlugins
97
100
  end
98
101
  end
99
102
  end
100
-
101
- # Immediately save the ID since it is created at this point.
102
- env[:machine].id = instance_id
103
103
 
104
104
  # Terminate the instance if we were interrupted
105
105
  terminate(env) if env[:interrupted]
@@ -16,37 +16,20 @@ module VagrantPlugins
16
16
  # 例外の定義は以下参照
17
17
  # http://cloud.nifty.com/api/sdk/rdoc/
18
18
  begin
19
- env[:ui].info(I18n.t("vagrant_niftycloud.suspending"))
20
-
21
- # 起動直後等、stop処理できないステータスの場合一旦待つ
22
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
23
- while server.instanceState.name == 'pending'
24
- sleep 5
25
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
26
- env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
27
- end
28
-
29
- if server.instanceState.name != 'stopped'
30
- env[:niftycloud_compute].stop_instances(:instance_id => env[:machine].id, :force => false)
31
- while server.instanceState.name != 'stopped'
32
- sleep 5
33
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
34
- env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
35
- end
36
- end
19
+ env[:niftycloud_compute].stop(env)
37
20
 
38
21
  @app.call(env)
39
22
  rescue NIFTY::ConfigurationError => e
40
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudConfigurationError,
23
+ raise Errors::NiftyCloudConfigurationError,
41
24
  :message => e.message
42
25
  rescue NIFTY::ArgumentError => e
43
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudArgumentError,
26
+ raise Errors::NiftyCloudArgumentError,
44
27
  :message => e.message
45
28
  rescue NIFTY::ResponseFormatError => e
46
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseFormatError,
29
+ raise Errors::NiftyCloudResponseFormatError,
47
30
  :message => e.message
48
31
  rescue NIFTY::ResponseError => e
49
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudResponseError,
32
+ raise Errors::NiftyCloudResponseError,
50
33
  :code => e.error_code,
51
34
  :message => e.error_message
52
35
  ui.error("Could not locate server '#{env[:machine].id}'. Please verify it was provisioned in the current zone.")
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require "log4r"
2
3
 
3
4
  require "vagrant/util/subprocess"
@@ -16,45 +16,24 @@ module VagrantPlugins
16
16
  # 例外の定義は以下参照
17
17
  # http://cloud.nifty.com/api/sdk/rdoc/
18
18
  begin
19
- env[:ui].info(I18n.t("vagrant_niftycloud.terminating"))
20
-
21
- # 起動直後等、terminate処理できないステータスの場合一旦待つ
22
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
23
- while server.instanceState.name == 'pending'
24
- sleep 5
25
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
26
- env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
27
- end
28
-
29
- attribute = env[:niftycloud_compute].describe_instance_attribute(:instance_id => env[:machine].id, :attribute => 'disableApiTermination')
30
- if attribute.disableApiTermination.value == 'false'
31
- # AWSのように即terminateができないため念のため一旦stopする
32
- # TODO API経由でのterminate不可の場合を考慮する必要があるか
33
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
34
- if server.instanceState.name != 'stopped'
35
- env[:niftycloud_compute].stop_instances(:instance_id => env[:machine].id, :force => true)
36
- while server.instanceState.name != 'stopped'
37
- sleep 5
38
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
39
- env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
40
- end
41
- end
42
- end
43
-
44
19
  # terminate処理
45
- server = env[:niftycloud_compute].describe_instances(:instance_id => env[:machine].id).reservationSet.item.first.instancesSet.item.first
46
- if server.instanceState.name == 'stopped'
47
- response = env[:niftycloud_compute].terminate_instances(:instance_id => env[:machine].id)
48
- env[:machine].id = nil
20
+ response = env[:niftycloud_compute].delete(env)
21
+ env[:machine].id = nil
49
22
 
50
- @app.call(env)
51
- end
23
+ @app.call(env)
52
24
  rescue NIFTY::ConfigurationError => e
53
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudConfigurationError,
25
+ raise Errors::NiftyCloudConfigurationError,
54
26
  :message => e.message
55
27
  rescue NIFTY::ArgumentError => e
56
- raise VagrantPlugins::NiftyCloud::Errors::NiftyCloudArgumentError,
28
+ raise Errors::NiftyCloudArgumentError,
29
+ :message => e.message
30
+ rescue NIFTY::ResponseFormatError => e
31
+ raise Errors::NiftyCloudResponseFormatError,
57
32
  :message => e.message
33
+ rescue NIFTY::ResponseError => e
34
+ raise Errors::NiftyCloudResponseError,
35
+ :code => e.error_code,
36
+ :message => e.error_message
58
37
  end
59
38
  end
60
39
  end
@@ -0,0 +1,99 @@
1
+ # -*- coding: utf-8 -*-
2
+ require 'log4r'
3
+ require 'NIFTY'
4
+
5
+ module VagrantPlugins
6
+ module NiftyCloud
7
+ module Servers
8
+ class Servers
9
+
10
+ def initialize(niftycloud_config)
11
+ if !ENV["VAGRANT_LOG"].nil? && ENV["VAGRANT_LOG"].upcase=='DEBUG'
12
+ NIFTY::LOG.level = Logger::DEBUG
13
+ end
14
+ @connection = NIFTY::Cloud::Base.new(niftycloud_config)
15
+ end
16
+
17
+ # Create instance
18
+ def create(options)
19
+ server = @connection.run_instances(options).instancesSet.item.first
20
+ end
21
+
22
+ # Get instance information
23
+ def get(machine)
24
+ server = @connection.describe_instances(:instance_id => machine.id).reservationSet.item.first.instancesSet.item.first
25
+ end
26
+
27
+ # Start instance
28
+ def start(env)
29
+ env[:ui].info(I18n.t("vagrant_niftycloud.resuming"))
30
+
31
+ # 起動直後等、resume処理できないステータスの場合一旦待つ
32
+ server = get(env[:machine])
33
+ while server.instanceState.name == 'pending'
34
+ sleep 5
35
+ server = get(env[:machine])
36
+ env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
37
+ end
38
+
39
+ if server.instanceState.name != 'running'
40
+ @connection.start_instances(:instance_id => env[:machine].id)
41
+ while server.instanceState.name != 'running'
42
+ sleep 5
43
+ server = get(env[:machine])
44
+ env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
45
+ end
46
+ end
47
+ end
48
+
49
+ # Stop instance
50
+ def stop(env)
51
+ env[:ui].info(I18n.t("vagrant_niftycloud.suspending"))
52
+
53
+ # 起動直後等、stop処理できないステータスの場合一旦待つ
54
+ server = get(env[:machine])
55
+ while server.instanceState.name == 'pending'
56
+ sleep 5
57
+ server = get(env[:machine])
58
+ env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
59
+ end
60
+
61
+ if server.instanceState.name != 'stopped'
62
+ @connection.stop_instances(:instance_id => env[:machine].id, :force => false)
63
+ while server.instanceState.name != 'stopped'
64
+ sleep 5
65
+ server = get(env[:machine])
66
+ env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
67
+ end
68
+ end
69
+ end
70
+
71
+ # Terminate instance
72
+ def delete(env)
73
+ env[:ui].info(I18n.t("vagrant_niftycloud.terminating"))
74
+
75
+ # 起動直後等、terminate処理できないステータスの場合一旦待つ
76
+ server = get(env[:machine])
77
+ while server.instanceState.name == 'pending'
78
+ sleep 5
79
+ server = get(env[:machine])
80
+ env[:ui].info(I18n.t("vagrant_niftycloud.processing"))
81
+ end
82
+
83
+ attribute = @connection.describe_instance_attribute(:instance_id => env[:machine].id, :attribute => 'disableApiTermination')
84
+ if attribute.disableApiTermination.value == 'false'
85
+ # AWSのように即terminateができないため一旦stopする
86
+ server = stop(env)
87
+ end
88
+
89
+ # terminate処理
90
+ server = get(env[:machine])
91
+ if server.instanceState.name == 'stopped'
92
+ response = @connection.terminate_instances(:instance_id => env[:machine].id)
93
+ return response
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module NiftyCloud
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -35,7 +35,7 @@ en:
35
35
  image_id_required: |-
36
36
  An Image ID must be configured via "image_id"
37
37
  private_key_missing: |-
38
- The specified private key for NiftyCloud could not be found
38
+ The specified private key for Nifty Cloud could not be found
39
39
  zone_required: |-
40
40
  A zone must be specified via "zone"
41
41
  secret_access_key_required: |-
@@ -43,12 +43,12 @@ en:
43
43
 
44
44
  errors:
45
45
  instance_ready_timeout: |-
46
- The instance never became "ready" in NiftyCloud. The timeout currently
46
+ The instance never became "ready" in Nifty Cloud. The timeout currently
47
47
  set waiting for the instance to become ready is %{timeout} seconds.
48
48
  Please verify that the machine properly boots. If you need more time
49
- set the `instance_ready_timeout` configuration on the NiftyCloud provider.
49
+ set the `instance_ready_timeout` configuration on the Nifty Cloud provider.
50
50
  niftycloud_response_error: |-
51
- Response Error occured while connecting to Nifty Cloud API
51
+ Response Error occured while connecting to Nifty Cloud API
52
52
 
53
53
  Error Code: %{code}
54
54
  %{message}
@@ -81,6 +81,10 @@ en:
81
81
  not created
82
82
  long_not_created: |-
83
83
  The Nifty Cloud instance is not created. Run `vagrant up` to create it.
84
+ short_creating: |-
85
+ creating
86
+ long_creating: |-
87
+ The Nifty Cloud instance is now creating. Please wait for process to finish
84
88
  short_running: |-
85
89
  running
86
90
  long_running: |-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-niftycloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-27 00:00:00.000000000 Z
12
+ date: 2013-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70242618690860 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70242618690860
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rspec-core
27
- requirement: &70242618689380 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: 2.12.2
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70242618689380
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.12.2
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec-expectations
38
- requirement: &70242618687580 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: 2.12.1
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70242618687580
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.12.1
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rspec-mocks
49
- requirement: &70242618685820 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: 2.12.1
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70242618685820
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 2.12.1
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: nifty-cloud-sdk
60
- requirement: &70242618685340 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,7 +85,12 @@ dependencies:
65
85
  version: '1.7'
66
86
  type: :runtime
67
87
  prerelease: false
68
- version_requirements: *70242618685340
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '1.7'
69
94
  description: Enables Vagrant to manage machines in Nifty Cloud.
70
95
  email: satoshiakama@gmail.com
71
96
  executables: []
@@ -95,6 +120,7 @@ files:
95
120
  - lib/vagrant-niftycloud/errors.rb
96
121
  - lib/vagrant-niftycloud/plugin.rb
97
122
  - lib/vagrant-niftycloud/provider.rb
123
+ - lib/vagrant-niftycloud/servers/servers.rb
98
124
  - lib/vagrant-niftycloud/util/timer.rb
99
125
  - lib/vagrant-niftycloud/version.rb
100
126
  - lib/vagrant-niftycloud.rb
@@ -122,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
148
  version: '0'
123
149
  segments:
124
150
  - 0
125
- hash: -102762255497424011
151
+ hash: -2659219092827590807
126
152
  required_rubygems_version: !ruby/object:Gem::Requirement
127
153
  none: false
128
154
  requirements:
@@ -131,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
157
  version: 0.1.0
132
158
  requirements: []
133
159
  rubyforge_project: vagrant-nifycloud
134
- rubygems_version: 1.8.11
160
+ rubygems_version: 1.8.23
135
161
  signing_key:
136
162
  specification_version: 3
137
163
  summary: Enables Vagrant to manage machines in Nifty Cloud