vagrant-rimu 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +12 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.rubocop.yml +1170 -0
- data/.travis.yml +55 -0
- data/Gemfile +23 -0
- data/LICENSE +373 -0
- data/README.md +109 -0
- data/Rakefile +6 -0
- data/Vagrantfile +6 -0
- data/gemfiles/vagrant_1.5.gemfile +18 -0
- data/gemfiles/vagrant_1.6.gemfile +18 -0
- data/gemfiles/vagrant_1.7.gemfile +18 -0
- data/lib/vagrant-rimu/actions/billing_methods.rb +20 -0
- data/lib/vagrant-rimu/actions/connect_to_rimu.rb +23 -0
- data/lib/vagrant-rimu/actions/create.rb +91 -0
- data/lib/vagrant-rimu/actions/is_created.rb +16 -0
- data/lib/vagrant-rimu/actions/is_stopped.rb +17 -0
- data/lib/vagrant-rimu/actions/list_distributions.rb +20 -0
- data/lib/vagrant-rimu/actions/list_servers.rb +20 -0
- data/lib/vagrant-rimu/actions/message_already_created.rb +16 -0
- data/lib/vagrant-rimu/actions/message_already_off.rb +16 -0
- data/lib/vagrant-rimu/actions/message_not_created.rb +16 -0
- data/lib/vagrant-rimu/actions/message_will_not_destroy.rb +17 -0
- data/lib/vagrant-rimu/actions/modify_provision_path.rb +37 -0
- data/lib/vagrant-rimu/actions/move.rb +22 -0
- data/lib/vagrant-rimu/actions/read_ssh_info.rb +43 -0
- data/lib/vagrant-rimu/actions/read_state.rb +37 -0
- data/lib/vagrant-rimu/actions/rebuild.rb +52 -0
- data/lib/vagrant-rimu/actions/reload.rb +23 -0
- data/lib/vagrant-rimu/actions/setup_sudo.rb +43 -0
- data/lib/vagrant-rimu/actions/setup_user.rb +68 -0
- data/lib/vagrant-rimu/actions/start_instance.rb +29 -0
- data/lib/vagrant-rimu/actions/stop_instance.rb +26 -0
- data/lib/vagrant-rimu/actions/terminate_instance.rb +26 -0
- data/lib/vagrant-rimu/actions.rb +237 -0
- data/lib/vagrant-rimu/commands/billing_methods.rb +18 -0
- data/lib/vagrant-rimu/commands/distributions.rb +18 -0
- data/lib/vagrant-rimu/commands/list_servers.rb +18 -0
- data/lib/vagrant-rimu/commands/move.rb +18 -0
- data/lib/vagrant-rimu/commands/rebuild.rb +20 -0
- data/lib/vagrant-rimu/commands/root.rb +67 -0
- data/lib/vagrant-rimu/config.rb +190 -0
- data/lib/vagrant-rimu/errors.rb +21 -0
- data/lib/vagrant-rimu/plugin.rb +80 -0
- data/lib/vagrant-rimu/provider.rb +54 -0
- data/lib/vagrant-rimu/version.rb +5 -0
- data/lib/vagrant-rimu.rb +20 -0
- data/locales/en.yml +79 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/vagrant-rimu/actions/connect_to_rimu_spec.rb +38 -0
- data/spec/vagrant-rimu/actions/message_already_created_spec.rb +33 -0
- data/spec/vagrant-rimu/actions/message_already_off_spec.rb +33 -0
- data/spec/vagrant-rimu/actions/message_not_created_spec.rb +33 -0
- data/spec/vagrant-rimu/actions/message_will_not_destroy_spec.rb +36 -0
- data/spec/vagrant-rimu/actions/modify_provision_path_spec.rb +81 -0
- data/spec/vagrant-rimu/actions/read_ssh_info_spec.rb +62 -0
- data/spec/vagrant-rimu/actions/read_state_spec.rb +59 -0
- data/spec/vagrant-rimu/actions/rebuild_spec.rb +148 -0
- data/spec/vagrant-rimu/actions/reload_spec.rb +42 -0
- data/spec/vagrant-rimu/actions/setup_sudo_spec.rb +94 -0
- data/spec/vagrant-rimu/actions/setup_user_spec.rb +78 -0
- data/spec/vagrant-rimu/actions/start_instance_spec.rb +64 -0
- data/spec/vagrant-rimu/actions/stop_instance_spec.rb +57 -0
- data/spec/vagrant-rimu/actions/terminate_instance_spec.rb +54 -0
- data/spec/vagrant-rimu/actions_spec.rb +22 -0
- data/spec/vagrant-rimu/commands/billing_methods_spec.rb +4 -0
- data/spec/vagrant-rimu/commands/distributions_spec.rb +4 -0
- data/spec/vagrant-rimu/commands/list_servers_spec.rb +4 -0
- data/spec/vagrant-rimu/commands/move_spec.rb +4 -0
- data/spec/vagrant-rimu/commands/rebuild_spec.rb +4 -0
- data/spec/vagrant-rimu/commands/root_spec.rb +4 -0
- data/spec/vagrant-rimu/config_spec.rb +162 -0
- data/spec/vagrant-rimu/provider_spec.rb +13 -0
- data/test/Vagrantfile +30 -0
- data/test/scripts/provision.sh +3 -0
- data/test/test.sh +12 -0
- data/test/test_rimu_id_rsa +51 -0
- data/test/test_rimu_id_rsa.pub +1 -0
- data/vagrant-rimu.gemspec +25 -0
- metadata +238 -0
@@ -0,0 +1,162 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe VagrantPlugins::Rimu::Config do
|
6
|
+
describe 'defaults' do
|
7
|
+
let(:vagrant_public_key) { Vagrant.source_root.join('keys/vagrant.pub') }
|
8
|
+
|
9
|
+
subject do
|
10
|
+
super().tap(&:finalize!)
|
11
|
+
end
|
12
|
+
|
13
|
+
its(:api_key) { should be_nil }
|
14
|
+
its(:api_url) { should be_nil }
|
15
|
+
its(:distro_code) { should eq("centos6.64") }
|
16
|
+
its(:data_centre) { should be_nil }
|
17
|
+
its(:disk_space_mb) { should eq(20000) }
|
18
|
+
its(:disk_space_2_mb) { should be_nil }
|
19
|
+
its(:memory_mb) { should eq(1024) }
|
20
|
+
its(:vps_type) { should be_nil }
|
21
|
+
its(:host_name) { should be_nil }
|
22
|
+
its(:root_password) { should be_nil }
|
23
|
+
its(:control_panel) { should be_nil }
|
24
|
+
its(:vps_to_clone) { should be_nil }
|
25
|
+
its(:extra_ip_reason) { should be_nil }
|
26
|
+
its(:num_ips) { should be_nil }
|
27
|
+
its(:private_ips) { should be_nil }
|
28
|
+
its(:billing_id) { should be_nil }
|
29
|
+
its(:host_server_id) { should be_nil }
|
30
|
+
its(:minimal_init) { should be_nil }
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'overriding defaults' do
|
34
|
+
[
|
35
|
+
:api_key,
|
36
|
+
:api_url,
|
37
|
+
:distro_code,
|
38
|
+
:data_centre,
|
39
|
+
:disk_space_mb,
|
40
|
+
:disk_space_2_mb,
|
41
|
+
:memory_mb,
|
42
|
+
:vps_type,
|
43
|
+
:host_name,
|
44
|
+
:root_password,
|
45
|
+
:control_panel,
|
46
|
+
:vps_to_clone,
|
47
|
+
:extra_ip_reason,
|
48
|
+
:num_ips,
|
49
|
+
:private_ips,
|
50
|
+
:billing_id,
|
51
|
+
:host_server_id,
|
52
|
+
:minimal_init,
|
53
|
+
].each do |attribute|
|
54
|
+
it "should not default #{attribute} if overridden" do
|
55
|
+
subject.send("#{attribute}=".to_sym, 'foo')
|
56
|
+
subject.finalize!
|
57
|
+
subject.send(attribute).should == 'foo'
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'validation' do
|
63
|
+
let(:machine) { double('machine') }
|
64
|
+
let(:validation_errors) { subject.validate(machine)['Rimu Provider'] }
|
65
|
+
let(:error_message) { double('error message') }
|
66
|
+
let(:config) { double('config') }
|
67
|
+
let(:ssh) { double('ssh') }
|
68
|
+
|
69
|
+
before(:each) do
|
70
|
+
machine.stub_chain(:env, :root_path).and_return '/'
|
71
|
+
ssh.stub(:private_key_path) { File.expand_path('test/test_rimu_id_rsa', Pathname.new(File.expand_path('../../../', __FILE__))) }
|
72
|
+
ssh.stub(:username) { 'ssh username' }
|
73
|
+
config.stub(:ssh) { ssh }
|
74
|
+
machine.stub(:config) { config }
|
75
|
+
subject.api_key = 'bar'
|
76
|
+
subject.host_name = 'foo.example.com'
|
77
|
+
end
|
78
|
+
|
79
|
+
subject do
|
80
|
+
super().tap(&:finalize!)
|
81
|
+
end
|
82
|
+
|
83
|
+
# context 'with invalid key' do
|
84
|
+
# it 'should raise an error' do
|
85
|
+
# subject.dummy1 = true
|
86
|
+
# subject.dummy2 = false
|
87
|
+
# I18n.should_receive(:t).with('vagrant.config.common.bad_field', fields: 'dummy1, dummy2')
|
88
|
+
# .and_return error_message
|
89
|
+
# validation_errors.first.should == error_message
|
90
|
+
# # validation_errors.should_not be_empty
|
91
|
+
# end
|
92
|
+
# end
|
93
|
+
|
94
|
+
context 'the API key' do
|
95
|
+
it 'should error if not set' do
|
96
|
+
subject.api_key = nil
|
97
|
+
I18n.should_receive(:t).with('vagrant_rimu.config.api_key').and_return error_message
|
98
|
+
validation_errors.first.should == error_message
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
context 'the ssh private key path' do
|
103
|
+
it 'should raise an error if not set' do
|
104
|
+
ssh.stub(:private_key_path) { nil }
|
105
|
+
subject.private_key_path = nil
|
106
|
+
I18n.should_receive(:t).with('vagrant_rimu.config.private_key').and_return error_message
|
107
|
+
validation_errors.first.should == error_message
|
108
|
+
end
|
109
|
+
it 'should raise an error if key does not exist' do
|
110
|
+
ssh.stub(:private_key_path) { 'missing' }
|
111
|
+
I18n.should_receive(:t).with('vagrant_rimu.config.missing_private_key', {:key=>'missing'}).and_return error_message
|
112
|
+
validation_errors.first.should == error_message
|
113
|
+
end
|
114
|
+
it 'should not have errors if the key exists with an absolute path' do
|
115
|
+
subject.private_key_path = File.expand_path 'locales/en.yml', Dir.pwd
|
116
|
+
validation_errors.should be_empty
|
117
|
+
end
|
118
|
+
it 'should not have errors if the key exists with a relative path' do
|
119
|
+
machine.stub_chain(:env, :root_path).and_return '.'
|
120
|
+
subject.private_key_path = 'locales/en.yml'
|
121
|
+
validation_errors.should be_empty
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
context 'the ssh public key path' do
|
126
|
+
it "should raise an error if the key doesn't exist" do
|
127
|
+
key = File.expand_path 'locales/en.yml', Dir.pwd
|
128
|
+
ssh.stub(:private_key_path) { key }
|
129
|
+
I18n.should_receive(:t).with('vagrant_rimu.config.public_key', {:key=>"#{key}.pub"}).and_return error_message
|
130
|
+
validation_errors.first.should == error_message
|
131
|
+
end
|
132
|
+
it 'should not have errors if the key exists with an absolute path' do
|
133
|
+
subject.public_key_path = File.expand_path 'locales/en.yml', Dir.pwd
|
134
|
+
validation_errors.should be_empty
|
135
|
+
end
|
136
|
+
it 'should not have errors if the key exists with a relative path' do
|
137
|
+
machine.stub_chain(:env, :root_path).and_return '.'
|
138
|
+
subject.public_key_path = 'locales/en.yml'
|
139
|
+
validation_errors.should be_empty
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
context 'the host name' do
|
144
|
+
it 'should raise an error if not set' do
|
145
|
+
subject.host_name = nil
|
146
|
+
I18n.should_receive(:t).with('vagrant_rimu.config.host_name').and_return error_message
|
147
|
+
validation_errors.first.should == error_message
|
148
|
+
end
|
149
|
+
it 'should raise an error if not FQDN' do
|
150
|
+
subject.host_name = 'james'
|
151
|
+
I18n.should_receive(:t).with('vagrant_rimu.config.invalid_host_name', {:host_name => 'james'}).and_return error_message
|
152
|
+
validation_errors.first.should == error_message
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
context 'with good values' do
|
157
|
+
it 'should validate' do
|
158
|
+
validation_errors.should be_empty
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe VagrantPlugins::Rimu::Provider do
|
4
|
+
before :each do
|
5
|
+
@provider = VagrantPlugins::Rimu::Provider.new :machine
|
6
|
+
end
|
7
|
+
|
8
|
+
describe 'to string' do
|
9
|
+
it 'should give the provider name with new id' do
|
10
|
+
@provider.to_s.should eq('Rimu (new)')
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/test/Vagrantfile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
Vagrant.require_plugin('vagrant-rimu')
|
2
|
+
|
3
|
+
Vagrant.configure('2') do |config|
|
4
|
+
config.ssh.username = 'tester'
|
5
|
+
config.ssh.private_key_path = 'test_rimu_id_rsa'
|
6
|
+
|
7
|
+
config.vm.synced_folder '.', '/vagrant', :disabled => true
|
8
|
+
|
9
|
+
config.vm.provider :rimu do |provider, override|
|
10
|
+
provider.token = ENV['RIMU_API_KEY']
|
11
|
+
end
|
12
|
+
|
13
|
+
config.vm.provision :shell, :path => 'scripts/provision.sh'
|
14
|
+
|
15
|
+
config.vm.define :debian do |debian|
|
16
|
+
debian.vm.provider :rimu do |provider|
|
17
|
+
provider.distro_code = 'jessie.64'
|
18
|
+
provider.disk_space_mb = 5000
|
19
|
+
provider.host_name = 'vagrant-test-debian-rimu.example.com'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
config.vm.define :centos do |centos|
|
24
|
+
centos.vm.provider :rimu do |provider|
|
25
|
+
provider.distro_code = 'centos6.64'
|
26
|
+
provider.disk_space_mb = 5000
|
27
|
+
provider.host_name = 'vagrant-test-centos-rimu.example.com'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/test/test.sh
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
-----BEGIN RSA PRIVATE KEY-----
|
2
|
+
MIIJKAIBAAKCAgEA7E1k/Qqpd/5rmBy0OeDXMg6RWRAvSwo0rYiDuJVONA9Hb3nP
|
3
|
+
MN4VJEuBnBFNPlfrRK2QzRo59AV4WLSeO+O7QhAvNi8PrekiqmIUsSKnZdxMp/p9
|
4
|
+
IwtlxpIquNdq/0f/WEDtQokw+8Fc4L1ILlAZCYbqLCrgrzMUbgNnN0T1Vw2uEEm/
|
5
|
+
nhzWBIV8QeX342JxnbdtqXEPyG952/TMsUiVR1YV3doaQgU1LZEAodurHaXhITmX
|
6
|
+
mwiosF8iuPDmPa+0F3DBJnj9OMER9kAz0qC1BpelRub+vAx8lrwmvk9n50PXGDMD
|
7
|
+
tLYltGvsuxjvGo7kAOLz/Q5nMZ42w01U1qr2dqqGNYRM2XD6I2av482BLmtAd1jW
|
8
|
+
n0X+lyf/86BCqJ5xz9ARFP9EPa7tYT61HIl6mniZ+eF34RQ9NFKtkPqS63xiOXtZ
|
9
|
+
psi/blsUBAX1pcmrLnfowd8PVX/0/Ifw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xIqdl3Eyn+n0jC2XGkiq412r/R/9YQO1CiTD7wVzgvUguUBkJhuosKuCvMxRuA2c3RPVXDa4QSb+eHNYEhXxB5ffjYnGdt22pcQ/Ib3nb9MyxSJVHVhXd2hpCBTUtkQCh26sdpeEhOZebCKiwXyK48OY9r7QXcMEmeP04wRH2QDPSoLUGl6VG5v68DHyWvCa+T2fnQ9cYMwO0tiW0a+y7GO8ajuQA4vP9DmcxnjbDTVTWqvZ2qoY1hEzZcPojZq/jzYEua0B3WNafRf6XJ//zoEKonnHP0BEU/0Q9ru1hPrUciXqaeJn54XfhFD00Uq2Q+pLrfGI5e1mmyL9uWxQEBfWlyasud+jB3w9Vf/T8h/Cf6XMStfvoAVHSbZFw4N3KLh2OwMqpXBoUizzA8nVNjxhceJ6VuuVf2j4lxa6Hpt2h2raT6I6Jh9djo+0O9f1NC1WfuzOFf8uXQb3ZqXcf6HFh4hrreYcqH2mU8frs4nZspv6C5/Erb0OqEgAK5AmDjeV7tMWXTvVSWT6qSbdd7cn59pNw5lGVp6q4mV4PbMupU1UJ6Is8F6V2VNz6J0ptu939bQ== andrew@fuzzylumpkins.local
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/vagrant-rimu/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ['Andrew Colin Kissa']
|
6
|
+
gem.email = ['andrew@topdog.za.net']
|
7
|
+
gem.license = 'MPL-2.0'
|
8
|
+
gem.description = %q{Rimuhosting provider for Vagrant.}
|
9
|
+
gem.summary = %q{Rimuhosting provider for Vagrant.}
|
10
|
+
gem.homepage = 'https://github.com/akissa/vagrant-rimu'
|
11
|
+
|
12
|
+
gem.files = `git ls-files`.split($\)
|
13
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
14
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
|
+
gem.name = 'vagrant-rimu'
|
16
|
+
gem.require_paths = ['lib']
|
17
|
+
gem.version = VagrantPlugins::Rimu::VERSION
|
18
|
+
|
19
|
+
gem.add_runtime_dependency 'rimu', '~> 0.0.3'
|
20
|
+
gem.add_development_dependency 'bundler', '~> 1.5'
|
21
|
+
gem.add_development_dependency 'rspec', '~> 3.1.0'
|
22
|
+
gem.add_development_dependency 'rspec-its', '~> 1.0.1'
|
23
|
+
gem.add_development_dependency 'rspec-expectations', '~> 3.1.2'
|
24
|
+
gem.add_development_dependency 'rake'
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,238 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vagrant-rimu
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Colin Kissa
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rimu
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.0.3
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.0.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.5'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.1.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.1.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-its
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.0.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.0.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-expectations
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 3.1.2
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.1.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Rimuhosting provider for Vagrant.
|
98
|
+
email:
|
99
|
+
- andrew@topdog.za.net
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- .codeclimate.yml
|
105
|
+
- .gitignore
|
106
|
+
- .rspec
|
107
|
+
- .rubocop.yml
|
108
|
+
- .travis.yml
|
109
|
+
- Gemfile
|
110
|
+
- LICENSE
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- Vagrantfile
|
114
|
+
- gemfiles/vagrant_1.5.gemfile
|
115
|
+
- gemfiles/vagrant_1.6.gemfile
|
116
|
+
- gemfiles/vagrant_1.7.gemfile
|
117
|
+
- lib/vagrant-rimu.rb
|
118
|
+
- lib/vagrant-rimu/actions.rb
|
119
|
+
- lib/vagrant-rimu/actions/billing_methods.rb
|
120
|
+
- lib/vagrant-rimu/actions/connect_to_rimu.rb
|
121
|
+
- lib/vagrant-rimu/actions/create.rb
|
122
|
+
- lib/vagrant-rimu/actions/is_created.rb
|
123
|
+
- lib/vagrant-rimu/actions/is_stopped.rb
|
124
|
+
- lib/vagrant-rimu/actions/list_distributions.rb
|
125
|
+
- lib/vagrant-rimu/actions/list_servers.rb
|
126
|
+
- lib/vagrant-rimu/actions/message_already_created.rb
|
127
|
+
- lib/vagrant-rimu/actions/message_already_off.rb
|
128
|
+
- lib/vagrant-rimu/actions/message_not_created.rb
|
129
|
+
- lib/vagrant-rimu/actions/message_will_not_destroy.rb
|
130
|
+
- lib/vagrant-rimu/actions/modify_provision_path.rb
|
131
|
+
- lib/vagrant-rimu/actions/move.rb
|
132
|
+
- lib/vagrant-rimu/actions/read_ssh_info.rb
|
133
|
+
- lib/vagrant-rimu/actions/read_state.rb
|
134
|
+
- lib/vagrant-rimu/actions/rebuild.rb
|
135
|
+
- lib/vagrant-rimu/actions/reload.rb
|
136
|
+
- lib/vagrant-rimu/actions/setup_sudo.rb
|
137
|
+
- lib/vagrant-rimu/actions/setup_user.rb
|
138
|
+
- lib/vagrant-rimu/actions/start_instance.rb
|
139
|
+
- lib/vagrant-rimu/actions/stop_instance.rb
|
140
|
+
- lib/vagrant-rimu/actions/terminate_instance.rb
|
141
|
+
- lib/vagrant-rimu/commands/billing_methods.rb
|
142
|
+
- lib/vagrant-rimu/commands/distributions.rb
|
143
|
+
- lib/vagrant-rimu/commands/list_servers.rb
|
144
|
+
- lib/vagrant-rimu/commands/move.rb
|
145
|
+
- lib/vagrant-rimu/commands/rebuild.rb
|
146
|
+
- lib/vagrant-rimu/commands/root.rb
|
147
|
+
- lib/vagrant-rimu/config.rb
|
148
|
+
- lib/vagrant-rimu/errors.rb
|
149
|
+
- lib/vagrant-rimu/plugin.rb
|
150
|
+
- lib/vagrant-rimu/provider.rb
|
151
|
+
- lib/vagrant-rimu/version.rb
|
152
|
+
- locales/en.yml
|
153
|
+
- spec/spec_helper.rb
|
154
|
+
- spec/vagrant-rimu/actions/connect_to_rimu_spec.rb
|
155
|
+
- spec/vagrant-rimu/actions/message_already_created_spec.rb
|
156
|
+
- spec/vagrant-rimu/actions/message_already_off_spec.rb
|
157
|
+
- spec/vagrant-rimu/actions/message_not_created_spec.rb
|
158
|
+
- spec/vagrant-rimu/actions/message_will_not_destroy_spec.rb
|
159
|
+
- spec/vagrant-rimu/actions/modify_provision_path_spec.rb
|
160
|
+
- spec/vagrant-rimu/actions/read_ssh_info_spec.rb
|
161
|
+
- spec/vagrant-rimu/actions/read_state_spec.rb
|
162
|
+
- spec/vagrant-rimu/actions/rebuild_spec.rb
|
163
|
+
- spec/vagrant-rimu/actions/reload_spec.rb
|
164
|
+
- spec/vagrant-rimu/actions/setup_sudo_spec.rb
|
165
|
+
- spec/vagrant-rimu/actions/setup_user_spec.rb
|
166
|
+
- spec/vagrant-rimu/actions/start_instance_spec.rb
|
167
|
+
- spec/vagrant-rimu/actions/stop_instance_spec.rb
|
168
|
+
- spec/vagrant-rimu/actions/terminate_instance_spec.rb
|
169
|
+
- spec/vagrant-rimu/actions_spec.rb
|
170
|
+
- spec/vagrant-rimu/commands/billing_methods_spec.rb
|
171
|
+
- spec/vagrant-rimu/commands/distributions_spec.rb
|
172
|
+
- spec/vagrant-rimu/commands/list_servers_spec.rb
|
173
|
+
- spec/vagrant-rimu/commands/move_spec.rb
|
174
|
+
- spec/vagrant-rimu/commands/rebuild_spec.rb
|
175
|
+
- spec/vagrant-rimu/commands/root_spec.rb
|
176
|
+
- spec/vagrant-rimu/config_spec.rb
|
177
|
+
- spec/vagrant-rimu/provider_spec.rb
|
178
|
+
- test/Vagrantfile
|
179
|
+
- test/scripts/provision.sh
|
180
|
+
- test/test.sh
|
181
|
+
- test/test_rimu_id_rsa
|
182
|
+
- test/test_rimu_id_rsa.pub
|
183
|
+
- vagrant-rimu.gemspec
|
184
|
+
homepage: https://github.com/akissa/vagrant-rimu
|
185
|
+
licenses:
|
186
|
+
- MPL-2.0
|
187
|
+
metadata: {}
|
188
|
+
post_install_message:
|
189
|
+
rdoc_options: []
|
190
|
+
require_paths:
|
191
|
+
- lib
|
192
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - '>='
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
197
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - '>='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
requirements: []
|
203
|
+
rubyforge_project:
|
204
|
+
rubygems_version: 2.4.6
|
205
|
+
signing_key:
|
206
|
+
specification_version: 4
|
207
|
+
summary: Rimuhosting provider for Vagrant.
|
208
|
+
test_files:
|
209
|
+
- spec/spec_helper.rb
|
210
|
+
- spec/vagrant-rimu/actions/connect_to_rimu_spec.rb
|
211
|
+
- spec/vagrant-rimu/actions/message_already_created_spec.rb
|
212
|
+
- spec/vagrant-rimu/actions/message_already_off_spec.rb
|
213
|
+
- spec/vagrant-rimu/actions/message_not_created_spec.rb
|
214
|
+
- spec/vagrant-rimu/actions/message_will_not_destroy_spec.rb
|
215
|
+
- spec/vagrant-rimu/actions/modify_provision_path_spec.rb
|
216
|
+
- spec/vagrant-rimu/actions/read_ssh_info_spec.rb
|
217
|
+
- spec/vagrant-rimu/actions/read_state_spec.rb
|
218
|
+
- spec/vagrant-rimu/actions/rebuild_spec.rb
|
219
|
+
- spec/vagrant-rimu/actions/reload_spec.rb
|
220
|
+
- spec/vagrant-rimu/actions/setup_sudo_spec.rb
|
221
|
+
- spec/vagrant-rimu/actions/setup_user_spec.rb
|
222
|
+
- spec/vagrant-rimu/actions/start_instance_spec.rb
|
223
|
+
- spec/vagrant-rimu/actions/stop_instance_spec.rb
|
224
|
+
- spec/vagrant-rimu/actions/terminate_instance_spec.rb
|
225
|
+
- spec/vagrant-rimu/actions_spec.rb
|
226
|
+
- spec/vagrant-rimu/commands/billing_methods_spec.rb
|
227
|
+
- spec/vagrant-rimu/commands/distributions_spec.rb
|
228
|
+
- spec/vagrant-rimu/commands/list_servers_spec.rb
|
229
|
+
- spec/vagrant-rimu/commands/move_spec.rb
|
230
|
+
- spec/vagrant-rimu/commands/rebuild_spec.rb
|
231
|
+
- spec/vagrant-rimu/commands/root_spec.rb
|
232
|
+
- spec/vagrant-rimu/config_spec.rb
|
233
|
+
- spec/vagrant-rimu/provider_spec.rb
|
234
|
+
- test/Vagrantfile
|
235
|
+
- test/scripts/provision.sh
|
236
|
+
- test/test.sh
|
237
|
+
- test/test_rimu_id_rsa
|
238
|
+
- test/test_rimu_id_rsa.pub
|