vagrant-1cloud 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebc7d45f897f5e351d05edd76ede0f04ec7abc9e
4
- data.tar.gz: 26fb412d121b33989dc4bd4d6b1c8ebc2076b886
3
+ metadata.gz: a827c5cc11ddcb5c3d2426168670fac8d653e3bd
4
+ data.tar.gz: 4045cfdcf19f514bf9500a3f3c448ef9945959d5
5
5
  SHA512:
6
- metadata.gz: dd51a3fdedae6d8caafae73bdd7680d9b4de7da353e6822988d5bfdbbcbf7edd8fc1eab0368f437cff6f0b5ea6559ffe9eb8565a643c3a39e4ffa4f03cff5771
7
- data.tar.gz: 61dd497e8adc7e5e4af225b47a9f7edfb01026e0bcde2d97865e171da3ea10feed31da2a9f618d8b558fe30c5627cd5154682667dc747035935a38888fc0a263
6
+ metadata.gz: 1e50edceee955d1bf09944d61924848b28a0ded2503ca480015f650a846ff6aeecd169a7a5928b69355a1725ffe33f6c783f0b2324280666b3d545ef6fbc6020
7
+ data.tar.gz: 6ab8e44383179d01d3dc573586357764c44d9c4a579f5fae0da9d488542811975eef045e8f48e0b208a1afbe6e1cfd8db94098caabdfa621404ae225bc4ceca8
@@ -5,7 +5,7 @@ module VagrantPlugins
5
5
  def initialize(app, env)
6
6
  @app = app
7
7
  @machine = env[:machine]
8
- @logger = Log4r::Logger.new('vagrant::1cloud::check_state')
8
+ @logger = Log4r::Logger.new('vagrant::onecloud::check_state')
9
9
  end
10
10
 
11
11
  def call(env)
@@ -11,7 +11,7 @@ module VagrantPlugins
11
11
  @app = app
12
12
  @machine = env[:machine]
13
13
  @client = client
14
- @logger = Log4r::Logger.new('vagrant::1cloud::create')
14
+ @logger = Log4r::Logger.new('vagrant::onecloud::create')
15
15
  end
16
16
 
17
17
  def call(env)
@@ -10,7 +10,7 @@ module VagrantPlugins
10
10
  @app = app
11
11
  @machine = env[:machine]
12
12
  @client = client
13
- @logger = Log4r::Logger.new('vagrant::1cloud::destroy')
13
+ @logger = Log4r::Logger.new('vagrant::onecloud::destroy')
14
14
  end
15
15
 
16
16
  def call(env)
@@ -10,7 +10,7 @@ module VagrantPlugins
10
10
  @app = app
11
11
  @machine = env[:machine]
12
12
  @client = client
13
- @logger = Log4r::Logger.new('vagrant::1cloud::power_off')
13
+ @logger = Log4r::Logger.new('vagrant::onecloud::power_off')
14
14
  end
15
15
 
16
16
  def call(env)
@@ -10,7 +10,7 @@ module VagrantPlugins
10
10
  @app = app
11
11
  @machine = env[:machine]
12
12
  @client = client
13
- @logger = Log4r::Logger.new('vagrant::1cloud::power_on')
13
+ @logger = Log4r::Logger.new('vagrant::onecloud::power_on')
14
14
  end
15
15
 
16
16
  def call(env)
@@ -10,7 +10,7 @@ module VagrantPlugins
10
10
  @app = app
11
11
  @machine = env[:machine]
12
12
  @client = client
13
- @logger = Log4r::Logger.new('vagrant::1cloud::reload')
13
+ @logger = Log4r::Logger.new('vagrant::onecloud::reload')
14
14
  end
15
15
 
16
16
  def call(env)
@@ -10,7 +10,7 @@ module VagrantPlugins
10
10
  @app = app
11
11
  @machine = env[:machine]
12
12
  @client = client
13
- @logger = Log4r::Logger.new('vagrant::1cloud::shut_down')
13
+ @logger = Log4r::Logger.new('vagrant::onecloud::shut_down')
14
14
  end
15
15
 
16
16
  def call(env)
@@ -15,7 +15,7 @@ module VagrantPlugins
15
15
  include Vagrant::Util::Retryable
16
16
 
17
17
  def initialize(machine)
18
- @logger = Log4r::Logger.new('vagrant::1cloud::apiclient')
18
+ @logger = Log4r::Logger.new('vagrant::onecloud::apiclient')
19
19
  @config = machine.provider_config
20
20
  @client = Faraday.new({
21
21
  :url => 'https://api.1cloud.ru/',
@@ -7,12 +7,12 @@ module VagrantPlugins
7
7
  machines using 1cloud's API.
8
8
  DESC
9
9
 
10
- config(:1cloud, :provider) do
10
+ config(:onecloud, :provider) do
11
11
  require_relative 'config'
12
12
  Config
13
13
  end
14
14
 
15
- provider(:1cloud, parallel: false, defaultable: false) do
15
+ provider(:onecloud, parallel: false, defaultable: false) do
16
16
  require_relative 'provider'
17
17
  Provider
18
18
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module OneCloud
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
data/test/Vagrantfile CHANGED
@@ -2,15 +2,15 @@ Vagrant.require_plugin('vagrant-1cloud')
2
2
 
3
3
  Vagrant.configure('2') do |config|
4
4
 
5
- config.vm.provider :1cloud do |provider|
5
+ config.vm.provider :onecloud do |provider|
6
6
  provider.token = ENV['DO_TOKEN']
7
7
  end
8
8
 
9
9
  config.vm.define "test" do |t|
10
10
  t.ssh.insert_key = false
11
11
  t.ssh.private_key_path = '~/.ssh/id_rsa'
12
- t.vm.box = '1cloud'
12
+ t.vm.box = 'onecloud'
13
13
  t.vm.hostname = 'test'
14
14
  t.vm.provision :shell, :path => 'scripts/provision.sh'
15
15
  end
16
- end
16
+ end
data/test/test.sh CHANGED
@@ -1,6 +1,6 @@
1
1
  cd test
2
2
 
3
- bundle exec vagrant up --provider=1cloud
3
+ bundle exec vagrant up --provider=onecloud
4
4
  bundle exec vagrant up
5
5
  bundle exec vagrant provision
6
6
  bundle exec vagrant halt
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-1cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bulat Yusupov