kontena-plugin-vagrant 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08ae2e51eecc84137f3dc9663d6ebd4e88cfe4b8
4
- data.tar.gz: 111f32338ef7500c77560e2529bc6ffe20b5baa9
3
+ metadata.gz: bcd348640f57159a47b8b61eaba11b8d1d2af24c
4
+ data.tar.gz: 03896a2c82123071a11ca65ade785bafb725929b
5
5
  SHA512:
6
- metadata.gz: 684ae2978624bd34b3042f39e877ecf7be51b1637485b2f9d5e07e83749c3aadd1abf377c7b0dc3edaa8681bb4f2ccf954b6dd4ed8e213b624a0df01a6457e3b
7
- data.tar.gz: 206a3751430018109b1dce5d925666798f3a1184da7aed082340b6cc8cfdd767a40132ed0cf2e1fc5c53a52861e910cb26c135d484b5a92663b33681eb1fa66b
6
+ metadata.gz: ecdea869808825ee3292875882196a9152efcfff2b3bf18c653476aac6f162b5f2d67847471b3d90b703958b96abba1e4fb00f742263ec937753631dc5d3cb7d
7
+ data.tar.gz: 43d4071b71ca6620213c86b09d436de5e31bc84a156a0fdb1ead7e041d44b675b38dbc2df01b8bfe45d365227055314de16c7089c3c9474b379d3cff2165022f
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0-p648
4
- - 2.1.8
5
- - 2.2.3
6
- - 2.3.1
3
+ - 2.1.10
4
+ - 2.2.6
5
+ - 2.3.3
6
+ - 2.4.1
7
7
  before_install:
8
8
  - rvm @global do gem uninstall bundler -a -x
9
9
  - rvm @global do gem install bundler -v 1.12.5
@@ -19,3 +19,4 @@ deploy:
19
19
  gem: kontena-plugin-vagrant
20
20
  on:
21
21
  tags: true
22
+ rvm: 2.4.1
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in kontena-plugin-aws.gemspec
3
+ # Specify your gem's dependencies in kontena-plugin-vagrant.gemspec
4
4
  gemspec
5
5
 
6
6
  group :development do
@@ -20,7 +20,7 @@ module Kontena
20
20
  end
21
21
 
22
22
  def run!(opts)
23
- name = generate_name
23
+ name = opts[:name] || generate_name
24
24
  version = opts[:version]
25
25
  memory = opts[:memory] || 1024
26
26
  vault_secret = opts[:vault_secret]
@@ -4,18 +4,18 @@ module Kontena::Plugin::Vagrant::Master
4
4
  class CreateCommand < Kontena::Command
5
5
  include Kontena::Cli::Common
6
6
 
7
- option "--name", "[NAME]", "Set master name"
7
+ option "--name", "NAME", "Set master name"
8
8
  option "--memory", "MEMORY", "How much memory node has"
9
9
  option "--version", "VERSION", "Define installed Kontena version", default: 'latest'
10
10
  option "--vault-secret", "VAULT_SECRET", "Secret key for Vault"
11
11
  option "--vault-iv", "VAULT_IV", "Initialization vector for Vault"
12
- option "--name", "NAME", "Set Master name"
13
12
  option "--coreos-channel", "CHANNEL", "CoreOS release channel", default: 'stable'
14
13
 
15
14
  def execute
16
15
  require_relative '../../../machine/vagrant'
17
16
  mem = ask_instance_memory
18
17
  provisioner.run!(
18
+ name: name,
19
19
  memory: mem,
20
20
  version: version,
21
21
  vault_secret: vault_secret || SecureRandom.hex(24),
@@ -1,7 +1,7 @@
1
1
  module Kontena
2
2
  module Plugin
3
3
  module Vagrant
4
- VERSION = "0.2.6"
4
+ VERSION = "0.2.7"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-plugin-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-19 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kontena-cli