vagrant-rimu 0.0.2 → 0.0.3

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.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +3 -2
  3. data/.travis.yml +3 -1
  4. data/Gemfile +3 -1
  5. data/README.md +1 -2
  6. data/Rakefile +6 -3
  7. data/gemfiles/vagrant_1.5.gemfile +3 -1
  8. data/gemfiles/vagrant_1.6.gemfile +5 -3
  9. data/gemfiles/vagrant_1.7.gemfile +10 -8
  10. data/lib/vagrant-rimu/actions/abstract_action.rb +20 -0
  11. data/lib/vagrant-rimu/actions/billing_methods.rb +11 -4
  12. data/lib/vagrant-rimu/actions/connect_to_rimu.rb +5 -3
  13. data/lib/vagrant-rimu/actions/create.rb +8 -3
  14. data/lib/vagrant-rimu/actions/is_created.rb +4 -2
  15. data/lib/vagrant-rimu/actions/is_stopped.rb +4 -2
  16. data/lib/vagrant-rimu/actions/list_distributions.rb +11 -4
  17. data/lib/vagrant-rimu/actions/list_servers.rb +11 -6
  18. data/lib/vagrant-rimu/actions/message_already_created.rb +4 -2
  19. data/lib/vagrant-rimu/actions/message_already_off.rb +4 -2
  20. data/lib/vagrant-rimu/actions/message_not_created.rb +4 -2
  21. data/lib/vagrant-rimu/actions/message_will_not_destroy.rb +4 -2
  22. data/lib/vagrant-rimu/actions/modify_provision_path.rb +4 -2
  23. data/lib/vagrant-rimu/actions/move.rb +26 -3
  24. data/lib/vagrant-rimu/actions/read_ssh_info.rb +4 -2
  25. data/lib/vagrant-rimu/actions/read_state.rb +4 -2
  26. data/lib/vagrant-rimu/actions/rebuild.rb +7 -2
  27. data/lib/vagrant-rimu/actions/reload.rb +4 -2
  28. data/lib/vagrant-rimu/actions/setup_sudo.rb +15 -8
  29. data/lib/vagrant-rimu/actions/setup_user.rb +35 -24
  30. data/lib/vagrant-rimu/actions/start_instance.rb +4 -2
  31. data/lib/vagrant-rimu/actions/stop_instance.rb +11 -5
  32. data/lib/vagrant-rimu/actions/terminate_instance.rb +4 -2
  33. data/lib/vagrant-rimu/actions.rb +1 -0
  34. data/lib/vagrant-rimu/commands/abstract_command.rb +47 -0
  35. data/lib/vagrant-rimu/commands/billing_methods.rb +10 -10
  36. data/lib/vagrant-rimu/commands/distributions.rb +10 -10
  37. data/lib/vagrant-rimu/commands/list_servers.rb +10 -10
  38. data/lib/vagrant-rimu/commands/move.rb +10 -10
  39. data/lib/vagrant-rimu/commands/rebuild.rb +9 -10
  40. data/lib/vagrant-rimu/commands/rimu_command.rb +13 -0
  41. data/lib/vagrant-rimu/commands/root.rb +26 -43
  42. data/lib/vagrant-rimu/commands/utils.rb +22 -0
  43. data/lib/vagrant-rimu/config.rb +1 -0
  44. data/lib/vagrant-rimu/errors.rb +4 -0
  45. data/lib/vagrant-rimu/version.rb +1 -1
  46. data/locales/en.yml +50 -19
  47. data/spec/vagrant-rimu/actions/billing_methods_spec.rb +4 -4
  48. data/spec/vagrant-rimu/actions/create_spec.rb +164 -0
  49. data/spec/vagrant-rimu/actions/list_distributions_spec.rb +4 -4
  50. data/spec/vagrant-rimu/actions/list_servers_spec.rb +4 -4
  51. data/spec/vagrant-rimu/actions/move_spec.rb +75 -0
  52. data/spec/vagrant-rimu/commands/billing_methods_spec.rb +17 -0
  53. data/spec/vagrant-rimu/commands/distributions_spec.rb +17 -0
  54. data/spec/vagrant-rimu/commands/list_servers_spec.rb +17 -0
  55. data/spec/vagrant-rimu/commands/move_spec.rb +17 -0
  56. data/spec/vagrant-rimu/commands/rebuild_spec.rb +17 -0
  57. data/test/Vagrantfile +1 -1
  58. data/vagrant-rimu.gemspec +2 -0
  59. metadata +58 -22
@@ -35,12 +35,12 @@ describe VagrantPlugins::Rimu::Actions::BillingMethods do
35
35
  describe 'call' do
36
36
  it 'return a billing_methods listing' do
37
37
  expect(env[:rimu_api].billing_methods).to receive(:each)
38
- heading = '%-20s %-20s %s' % ['ID', 'Type', 'Description']
39
- expect(env[:ui]).to receive(:info).with(heading)
38
+ rows = []
40
39
  [method1, method2].each do |b|
41
- row = '%-20s %-20s %s' % [b.billing_oid, b.billing_method_type, b.description]
42
- expect(env[:ui]).to receive(:info).with(row)
40
+ rows << [b.billing_oid, b.billing_method_type, b.description]
43
41
  end
42
+ table = Terminal::Table.new headings: ['ID', 'Type', 'Description'], rows: rows
43
+ expect(env[:ui]).to receive(:info).with("\n#{table}")
44
44
  expect(app).to receive(:call)
45
45
  @action = VagrantPlugins::Rimu::Actions::BillingMethods.new(app, env)
46
46
  @action.call(env)
@@ -0,0 +1,164 @@
1
+ require 'pathname'
2
+ require 'spec_helper'
3
+
4
+ # action_root = Pathname.new(File.expand_path('../../../../lib/vagrant-rimu/actions', __FILE__))
5
+ # autoload :StopInstance, action_root.join('stop_instance')
6
+
7
+ describe VagrantPlugins::Rimu::Actions::Create do
8
+ let(:dup) { double('dup') }
9
+ let(:ssh) { double('ssh') }
10
+ # let(:action_runner) { double('action_runner') }
11
+ let(:servers) { double('servers') }
12
+ let(:machine) { double('machine') }
13
+ let(:create) { double('create') }
14
+ let(:communicate) { double('communicate') }
15
+ let(:id) { '200' }
16
+
17
+ let(:config) do
18
+ double.tap do |config|
19
+ config.stub(:api_url) { nil }
20
+ config.stub(:api_key) { 'foo' }
21
+ config.stub(:host_name) { 'rimu.example.com' }
22
+ config.stub(:root_password) { 'P455w0rd' }
23
+ config.stub(:distro_code) { nil }
24
+ config.stub(:control_panel) { nil }
25
+ config.stub(:vps_to_clone) { nil }
26
+ config.stub(:minimal_init) { nil }
27
+ config.stub(:disk_space_mb) { nil }
28
+ config.stub(:memory_mb) { nil }
29
+ config.stub(:disk_space_2_mb) { nil }
30
+ config.stub(:billing_id) { nil }
31
+ config.stub(:data_centre) { nil }
32
+ config.stub(:host_server_id) { nil }
33
+ config.stub(:extra_ip_reason) { nil }
34
+ config.stub(:num_ips) { nil }
35
+ config.stub(:private_ips) { nil }
36
+ config.stub(:vps_type) { nil }
37
+ config.stub(:setup?) { true }
38
+ ssh.stub(:username) { 'rimu' }
39
+ ssh.stub(:username=) { 'rimu' }
40
+ ssh.stub(:password=).with(anything)
41
+ ssh.stub(:private_key_path) { 'test/test_rimu_id_rsa' }
42
+ config.stub(:ssh) { ssh }
43
+ end
44
+ end
45
+
46
+ let(:env) do
47
+ {}.tap do |env|
48
+ env[:ui] = double('ui').tap do |ui|
49
+ ui.stub(:info).with(anything)
50
+ ui.stub(:error).with(anything)
51
+ end
52
+ env[:rimu_api] = double('rimu_api').tap do |os|
53
+ create.stub(:order_oid) { id }
54
+ create.stub(:allocated_ips) { {:primary_ip => '192.168.1.10'} }
55
+ servers.stub(:create) { create }
56
+ os.stub(:servers) { servers }
57
+ end
58
+ machine.stub(:id) { id }
59
+ machine.stub(:id=) { id }
60
+ env[:machine] = machine
61
+ env[:machine].stub(:config) { config }
62
+ env[:machine].stub(:provider_config) { config }
63
+ communicate.stub(:ready?) { true }
64
+ env[:machine].stub(:communicate) { communicate }
65
+ # dup.stub(:delete) { double('delete') }
66
+ # dup.stub(:[]=) { double('[]=') }
67
+ # env.stub(:dup) { dup }
68
+ # action_runner.stub(:run) { double('run') }
69
+ # env[:action_runner] = action_runner
70
+ end
71
+ end
72
+
73
+ let(:app) do
74
+ double('app').tap do |app|
75
+ app.stub(:call).with(anything)
76
+ # app.stub(:terminate).with(anything)
77
+ end
78
+ end
79
+
80
+ describe 'call' do
81
+ context 'when vps_to_clone option is not set' do
82
+ it 'should install the server using instantiation_options' do
83
+ expect(env[:machine].provider_config).to receive(:setup?)
84
+ expect(env[:machine].communicate).to receive(:ready?)
85
+ expect(env[:machine].config.ssh).to receive(:username=).with(ssh.username)
86
+ expect(env[:rimu_api].servers).to receive(:create).with(
87
+ {
88
+ :billing_oid => config.billing_id,
89
+ :dc_location => config.data_centre,
90
+ :host_server_oid => config.host_server_id,
91
+ :instantiation_options=> {
92
+ :domain_name=>config.host_name,
93
+ :password=>config.root_password,
94
+ :distro=>config.distro_code,
95
+ :control_panel=>config.control_panel
96
+ },
97
+ :ip_request => {
98
+ :extra_ip_reason => config.extra_ip_reason,
99
+ :num_ips => config.num_ips,
100
+ :requested_ips => config.private_ips,
101
+ },
102
+ :is_just_minimal_init=>nil,
103
+ :vps_parameters=>{
104
+ :disk_space_mb=>nil,
105
+ :memory_mb=>nil,
106
+ :disk_space_2_mb=>nil
107
+ },
108
+ :vps_type => config.vps_type,
109
+ }
110
+ )
111
+ expect(app).to receive(:call)
112
+ @action = VagrantPlugins::Rimu::Actions::Create.new(app, env)
113
+ @action.call(env)
114
+ end
115
+ end
116
+
117
+ context 'when vps_to_clone option is set' do
118
+ it 'should install the server using instantiation_via_clone_options' do
119
+ vps_clone = 9999
120
+ env[:machine].provider_config.stub(:vps_to_clone) { vps_clone }
121
+ expect(env[:machine].provider_config).to receive(:setup?)
122
+ expect(env[:machine].communicate).not_to receive(:ready?)
123
+ expect(env[:machine].config.ssh).to receive(:username=).with(ssh.username)
124
+ expect(env[:rimu_api].servers).to receive(:create).with(
125
+ {
126
+ :billing_oid => config.billing_id,
127
+ :dc_location => config.data_centre,
128
+ :host_server_oid => config.host_server_id,
129
+ :instantiation_via_clone_options=> {
130
+ :domain_name=>config.host_name,
131
+ :vps_order_oid_to_clone => vps_clone,
132
+ },
133
+ :ip_request => {
134
+ :extra_ip_reason => config.extra_ip_reason,
135
+ :num_ips => config.num_ips,
136
+ :requested_ips => config.private_ips,
137
+ },
138
+ :is_just_minimal_init=>nil,
139
+ :vps_parameters=>{
140
+ :disk_space_mb=>nil,
141
+ :memory_mb=>nil,
142
+ :disk_space_2_mb=>nil
143
+ },
144
+ :vps_type => config.vps_type,
145
+ }
146
+ )
147
+ expect(app).to receive(:call)
148
+ @action = VagrantPlugins::Rimu::Actions::Create.new(app, env)
149
+ @action.call(env)
150
+ end
151
+ end
152
+
153
+ # context 'when terminate is run' do
154
+ # it 'should call the destroy action' do
155
+ # expect(app.dup).to receive(:[]=).with(:config_validate, false)
156
+ # expect(app.dup).to receive(:[]=).with(:force_confirm_destroy, true)
157
+ # expect(env[:action_runner]).to receive(:run)
158
+ # expect(app).to receive(:terminate)
159
+ # @action = VagrantPlugins::Rimu::Actions::Create.new(app, env)
160
+ # @action.terminate(env)
161
+ # end
162
+ # end
163
+ end
164
+ end
@@ -35,12 +35,12 @@ describe VagrantPlugins::Rimu::Actions::ListDistributions do
35
35
  describe 'call' do
36
36
  it 'return a distribution listing' do
37
37
  expect(env[:rimu_api].distributions).to receive(:each)
38
- heading = '%-15s %s' % ['Distro Code', 'Distro Description']
39
- expect(env[:ui]).to receive(:info).with(heading)
38
+ rows = []
40
39
  [distro1, distro2].each do |o|
41
- row = '%-15s %s' % [o.distro_code, o.distro_description]
42
- expect(env[:ui]).to receive(:info).with(row)
40
+ rows << [o.distro_code, o.distro_description]
43
41
  end
42
+ table = Terminal::Table.new headings: ['Distro Code', 'Distro Description'], rows: rows
43
+ expect(env[:ui]).to receive(:info).with("\n#{table}")
44
44
  expect(app).to receive(:call)
45
45
  @action = VagrantPlugins::Rimu::Actions::ListDistributions.new(app, env)
46
46
  @action.call(env)
@@ -37,12 +37,12 @@ describe VagrantPlugins::Rimu::Actions::ListServers do
37
37
  describe 'call' do
38
38
  it 'return a server listing' do
39
39
  expect(env[:rimu_api].orders.orders).to receive(:each)
40
- heading = '%-10s %-30s %-20s %-15s %-15s' % ['ID', 'Hostname', 'Data Centre', 'Host Server', 'Status']
41
- expect(env[:ui]).to receive(:info).with(heading)
40
+ rows = []
42
41
  [server1, server2].each do |o|
43
- row = '%-10s %-30s %-20s %-15s %-15s' % [o.order_oid, o.domain_name, o.location["data_center_location_code"], o.host_server_oid, o.running_state]
44
- expect(env[:ui]).to receive(:info).with(row)
42
+ rows << [o.order_oid, o.domain_name, o.location["data_center_location_code"], o.host_server_oid, o.running_state]
45
43
  end
44
+ table = Terminal::Table.new headings: ['ID', 'Hostname', 'Data Centre', 'Host Server', 'Status'], rows: rows
45
+ expect(env[:ui]).to receive(:info).with("\n#{table}")
46
46
  expect(app).to receive(:call)
47
47
  @action = VagrantPlugins::Rimu::Actions::ListServers.new(app, env)
48
48
  @action.call(env)
@@ -0,0 +1,75 @@
1
+ require 'pathname'
2
+ require 'spec_helper'
3
+
4
+ # action_root = Pathname.new(File.expand_path('../../../../lib/vagrant-rimu/actions', __FILE__))
5
+ # autoload :StopInstance, action_root.join('stop_instance')
6
+
7
+ describe VagrantPlugins::Rimu::Actions::Move do
8
+ let(:ssh) { double('ssh') }
9
+ let(:servers) { double('servers') }
10
+ let(:machine) { double('machine') }
11
+ let(:move) { double('move') }
12
+ let(:communicate) { double('communicate') }
13
+ let(:id) { '200' }
14
+
15
+ let(:config) do
16
+ double.tap do |config|
17
+ config.stub(:api_url) { nil }
18
+ config.stub(:api_key) { 'foo' }
19
+ # config.stub(:host_name) { 'rimu.example.com' }
20
+ # config.stub(:root_password) { nil }
21
+ # config.stub(:distro_code) { nil }
22
+ # config.stub(:control_panel) { nil }
23
+ # config.stub(:vps_to_clone) { nil }
24
+ # config.stub(:minimal_init) { nil }
25
+ # config.stub(:disk_space_mb) { nil }
26
+ # config.stub(:memory_mb) { nil }
27
+ # config.stub(:disk_space_2_mb) { nil }
28
+ config.stub(:setup?) { true }
29
+ ssh.stub(:username) { 'rimu' }
30
+ ssh.stub(:username=) { 'rimu' }
31
+ ssh.stub(:private_key_path) { 'test/test_rimu_id_rsa' }
32
+ config.stub(:ssh) { ssh }
33
+ end
34
+ end
35
+
36
+ let(:env) do
37
+ {}.tap do |env|
38
+ env[:ui] = double('ui').tap do |ui|
39
+ ui.stub(:info).with(anything)
40
+ ui.stub(:error).with(anything)
41
+ end
42
+ env[:rimu_api] = double('rimu_api').tap do |os|
43
+ move.stub(:order_oid) { id }
44
+ move.stub(:allocated_ips) { {:primary_ip => '192.168.1.10'} }
45
+ servers.stub(:move) { move }
46
+ os.stub(:servers) { servers }
47
+ end
48
+ machine.stub(:id) { id }
49
+ machine.stub(:id=) { id }
50
+ env[:machine] = machine
51
+ env[:machine].stub(:config) { config }
52
+ env[:machine].stub(:provider_config) { config }
53
+ communicate.stub(:ready?) { true }
54
+ env[:machine].stub(:communicate) { communicate }
55
+ end
56
+ end
57
+
58
+ let(:app) do
59
+ double('app').tap do |app|
60
+ app.stub(:call).with(anything)
61
+ end
62
+ end
63
+
64
+ describe 'call' do
65
+ it 'moves server to different host' do
66
+ expect(env[:machine].provider_config).to receive(:setup?)
67
+ expect(env[:machine].communicate).to receive(:ready?)
68
+ expect(env[:machine].config.ssh).to receive(:username=).with(ssh.username)
69
+ expect(env[:rimu_api].servers).to receive(:move)
70
+ expect(app).to receive(:call)
71
+ @action = VagrantPlugins::Rimu::Actions::Move.new(app, env)
72
+ @action.call(env)
73
+ end
74
+ end
75
+ end
@@ -1,4 +1,21 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe VagrantPlugins::Rimu::Commands::BillingMethods do
4
+ let(:machine) { double('machine') }
5
+
6
+ let(:env) do
7
+ {}.tap do |env|
8
+ machine.stub(:action).with('billing_methods') { 1 }
9
+ env[:machine] = machine
10
+ end
11
+ end
12
+
13
+ before :each do
14
+ @billing_methods_cmd = VagrantPlugins::Rimu::Commands::BillingMethods.new(nil, env)
15
+ end
16
+
17
+ it 'calls the machine billing_methods action' do
18
+ env[:machine].should_receive(:action).with('billing_methods')
19
+ @billing_methods_cmd.cmd('billing-methods', [], env)
20
+ end
4
21
  end
@@ -1,4 +1,21 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe VagrantPlugins::Rimu::Commands::Distributions do
4
+ let(:machine) { double('machine') }
5
+
6
+ let(:env) do
7
+ {}.tap do |env|
8
+ machine.stub(:action).with('list_distributions') { 1 }
9
+ env[:machine] = machine
10
+ end
11
+ end
12
+
13
+ before :each do
14
+ @list_distributions_cmd = VagrantPlugins::Rimu::Commands::Distributions.new(nil, env)
15
+ end
16
+
17
+ it 'calls the machine list_distributions action' do
18
+ env[:machine].should_receive(:action).with('list_distributions')
19
+ @list_distributions_cmd.cmd('distributions', [], env)
20
+ end
4
21
  end
@@ -1,4 +1,21 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe VagrantPlugins::Rimu::Commands::ListServers do
4
+ let(:machine) { double('machine') }
5
+
6
+ let(:env) do
7
+ {}.tap do |env|
8
+ machine.stub(:action).with('list_servers') { 1 }
9
+ env[:machine] = machine
10
+ end
11
+ end
12
+
13
+ before :each do
14
+ @list_servers_cmd = VagrantPlugins::Rimu::Commands::ListServers.new(nil, env)
15
+ end
16
+
17
+ it 'calls the machine list_servers action' do
18
+ env[:machine].should_receive(:action).with('list_servers')
19
+ @list_servers_cmd.cmd('servers', [], env)
20
+ end
4
21
  end
@@ -1,4 +1,21 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe VagrantPlugins::Rimu::Commands::Move do
4
+ let(:machine) { double('machine') }
5
+
6
+ let(:env) do
7
+ {}.tap do |env|
8
+ machine.stub(:action).with('move') { 1 }
9
+ env[:machine] = machine
10
+ end
11
+ end
12
+
13
+ before :each do
14
+ @move_cmd = VagrantPlugins::Rimu::Commands::Move.new(nil, env)
15
+ end
16
+
17
+ it 'calls the machine move action' do
18
+ env[:machine].should_receive(:action).with('move')
19
+ @move_cmd.cmd('move-vps', [], env)
20
+ end
4
21
  end
@@ -1,4 +1,21 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe VagrantPlugins::Rimu::Commands::Rebuild do
4
+ let(:machine) { double('machine') }
5
+
6
+ let(:env) do
7
+ {}.tap do |env|
8
+ machine.stub(:action).with('rebuild') { 1 }
9
+ env[:machine] = machine
10
+ end
11
+ end
12
+
13
+ before :each do
14
+ @rebuild_cmd = VagrantPlugins::Rimu::Commands::Rebuild.new(nil, env)
15
+ end
16
+
17
+ it 'calls the machine rebuild action' do
18
+ env[:machine].should_receive(:action).with('rebuild')
19
+ @rebuild_cmd.cmd('rebuild', [], env)
20
+ end
4
21
  end
data/test/Vagrantfile CHANGED
@@ -6,7 +6,7 @@ Vagrant.configure('2') do |config|
6
6
 
7
7
  config.vm.synced_folder '.', '/vagrant', :disabled => true
8
8
 
9
- config.vm.provider :rimu do |provider, override|
9
+ config.vm.provider :rimu do |provider|
10
10
  provider.token = ENV['RIMU_API_KEY']
11
11
  end
12
12
 
data/vagrant-rimu.gemspec CHANGED
@@ -19,6 +19,8 @@ Gem::Specification.new do |gem|
19
19
  gem.version = VagrantPlugins::Rimu::VERSION
20
20
 
21
21
  gem.add_runtime_dependency 'rimu', '~> 0.0.6'
22
+ gem.add_runtime_dependency 'colorize', '~> 0.7.3'
23
+ gem.add_runtime_dependency 'terminal-table', '~> 1.4.5'
22
24
  gem.add_development_dependency 'bundler', '~> 1.5'
23
25
  gem.add_development_dependency 'rspec', '~> 3.1.0'
24
26
  gem.add_development_dependency 'rspec-its', '~> 1.0.1'
metadata CHANGED
@@ -1,97 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-rimu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Colin Kissa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-28 00:00:00.000000000 Z
11
+ date: 2015-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rimu
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.0.6
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
26
  version: 0.0.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: colorize
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 0.7.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.7.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: terminal-table
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 1.4.5
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 1.4.5
27
55
  - !ruby/object:Gem::Dependency
28
56
  name: bundler
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
- - - "~>"
59
+ - - ~>
32
60
  - !ruby/object:Gem::Version
33
61
  version: '1.5'
34
62
  type: :development
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
- - - "~>"
66
+ - - ~>
39
67
  - !ruby/object:Gem::Version
40
68
  version: '1.5'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: rspec
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
- - - "~>"
73
+ - - ~>
46
74
  - !ruby/object:Gem::Version
47
75
  version: 3.1.0
48
76
  type: :development
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
- - - "~>"
80
+ - - ~>
53
81
  - !ruby/object:Gem::Version
54
82
  version: 3.1.0
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: rspec-its
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
- - - "~>"
87
+ - - ~>
60
88
  - !ruby/object:Gem::Version
61
89
  version: 1.0.1
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
- - - "~>"
94
+ - - ~>
67
95
  - !ruby/object:Gem::Version
68
96
  version: 1.0.1
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rspec-expectations
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
- - - "~>"
101
+ - - ~>
74
102
  - !ruby/object:Gem::Version
75
103
  version: 3.1.2
76
104
  type: :development
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
- - - "~>"
108
+ - - ~>
81
109
  - !ruby/object:Gem::Version
82
110
  version: 3.1.2
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: rake
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
- - - ">="
115
+ - - '>='
88
116
  - !ruby/object:Gem::Version
89
117
  version: '0'
90
118
  type: :development
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
- - - ">="
122
+ - - '>='
95
123
  - !ruby/object:Gem::Version
96
124
  version: '0'
97
125
  description: Rimuhosting provider for Vagrant.
@@ -102,11 +130,11 @@ extensions: []
102
130
  extra_rdoc_files:
103
131
  - README.md
104
132
  files:
105
- - ".codeclimate.yml"
106
- - ".gitignore"
107
- - ".rspec"
108
- - ".rubocop.yml"
109
- - ".travis.yml"
133
+ - .codeclimate.yml
134
+ - .gitignore
135
+ - .rspec
136
+ - .rubocop.yml
137
+ - .travis.yml
110
138
  - Gemfile
111
139
  - LICENSE
112
140
  - README.md
@@ -117,6 +145,7 @@ files:
117
145
  - gemfiles/vagrant_1.7.gemfile
118
146
  - lib/vagrant-rimu.rb
119
147
  - lib/vagrant-rimu/actions.rb
148
+ - lib/vagrant-rimu/actions/abstract_action.rb
120
149
  - lib/vagrant-rimu/actions/billing_methods.rb
121
150
  - lib/vagrant-rimu/actions/connect_to_rimu.rb
122
151
  - lib/vagrant-rimu/actions/create.rb
@@ -139,12 +168,15 @@ files:
139
168
  - lib/vagrant-rimu/actions/start_instance.rb
140
169
  - lib/vagrant-rimu/actions/stop_instance.rb
141
170
  - lib/vagrant-rimu/actions/terminate_instance.rb
171
+ - lib/vagrant-rimu/commands/abstract_command.rb
142
172
  - lib/vagrant-rimu/commands/billing_methods.rb
143
173
  - lib/vagrant-rimu/commands/distributions.rb
144
174
  - lib/vagrant-rimu/commands/list_servers.rb
145
175
  - lib/vagrant-rimu/commands/move.rb
146
176
  - lib/vagrant-rimu/commands/rebuild.rb
177
+ - lib/vagrant-rimu/commands/rimu_command.rb
147
178
  - lib/vagrant-rimu/commands/root.rb
179
+ - lib/vagrant-rimu/commands/utils.rb
148
180
  - lib/vagrant-rimu/config.rb
149
181
  - lib/vagrant-rimu/errors.rb
150
182
  - lib/vagrant-rimu/logging.rb
@@ -155,6 +187,7 @@ files:
155
187
  - spec/spec_helper.rb
156
188
  - spec/vagrant-rimu/actions/billing_methods_spec.rb
157
189
  - spec/vagrant-rimu/actions/connect_to_rimu_spec.rb
190
+ - spec/vagrant-rimu/actions/create_spec.rb
158
191
  - spec/vagrant-rimu/actions/is_created_spec.rb
159
192
  - spec/vagrant-rimu/actions/is_stopped_spec.rb
160
193
  - spec/vagrant-rimu/actions/list_distributions_spec.rb
@@ -164,6 +197,7 @@ files:
164
197
  - spec/vagrant-rimu/actions/message_not_created_spec.rb
165
198
  - spec/vagrant-rimu/actions/message_will_not_destroy_spec.rb
166
199
  - spec/vagrant-rimu/actions/modify_provision_path_spec.rb
200
+ - spec/vagrant-rimu/actions/move_spec.rb
167
201
  - spec/vagrant-rimu/actions/read_ssh_info_spec.rb
168
202
  - spec/vagrant-rimu/actions/read_state_spec.rb
169
203
  - spec/vagrant-rimu/actions/rebuild_spec.rb
@@ -198,17 +232,17 @@ require_paths:
198
232
  - lib
199
233
  required_ruby_version: !ruby/object:Gem::Requirement
200
234
  requirements:
201
- - - ">="
235
+ - - '>='
202
236
  - !ruby/object:Gem::Version
203
237
  version: 2.0.0
204
238
  required_rubygems_version: !ruby/object:Gem::Requirement
205
239
  requirements:
206
- - - ">="
240
+ - - '>='
207
241
  - !ruby/object:Gem::Version
208
242
  version: '0'
209
243
  requirements: []
210
244
  rubyforge_project:
211
- rubygems_version: 2.4.8
245
+ rubygems_version: 2.4.6
212
246
  signing_key:
213
247
  specification_version: 4
214
248
  summary: Rimuhosting provider for Vagrant.
@@ -216,6 +250,7 @@ test_files:
216
250
  - spec/spec_helper.rb
217
251
  - spec/vagrant-rimu/actions/billing_methods_spec.rb
218
252
  - spec/vagrant-rimu/actions/connect_to_rimu_spec.rb
253
+ - spec/vagrant-rimu/actions/create_spec.rb
219
254
  - spec/vagrant-rimu/actions/is_created_spec.rb
220
255
  - spec/vagrant-rimu/actions/is_stopped_spec.rb
221
256
  - spec/vagrant-rimu/actions/list_distributions_spec.rb
@@ -225,6 +260,7 @@ test_files:
225
260
  - spec/vagrant-rimu/actions/message_not_created_spec.rb
226
261
  - spec/vagrant-rimu/actions/message_will_not_destroy_spec.rb
227
262
  - spec/vagrant-rimu/actions/modify_provision_path_spec.rb
263
+ - spec/vagrant-rimu/actions/move_spec.rb
228
264
  - spec/vagrant-rimu/actions/read_ssh_info_spec.rb
229
265
  - spec/vagrant-rimu/actions/read_state_spec.rb
230
266
  - spec/vagrant-rimu/actions/rebuild_spec.rb