vagrant-dotvm 0.36.0 → 0.37.0.pre

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: 36cc412726db587db86d6f7ed13aa18277dfa3c2
4
- data.tar.gz: e25910ad72e0a8f47ec35f58758cde16c180781f
3
+ metadata.gz: dc5a95314dd84edb7e58154103aa7ccd736715a3
4
+ data.tar.gz: e3a9414434c8879894f9cebffcb642f725a90270
5
5
  SHA512:
6
- metadata.gz: 66b0f547af40e2f0d4ef5254566f02904b95f055968959b34fe7bcd79f80a7627159b2d639dc250d8b6f447d155da11333e90982ef598fa3e743b3b91d00c465
7
- data.tar.gz: c9429ad70bec94dff564d58b73660f6e6aa5cd67bbac20ec4f2a880b58c01d0d9341ddab13efc1b29431b939429bfbdb863d69daac1afbe5caed42c73d35145c
6
+ metadata.gz: 815f8ae26c1f75868c22917358486b4a731ead07b7f0be07cd08c967dd42872f30de724e224a778ede1698c0413cb11de181c38b9b568363ae1056f1d6b109e3
7
+ data.tar.gz: 0d444af2b5c01051c2188fb6a8e817d58bd7674ef8a3add396d47f78574bd1970cdabd1185c2d3d1e5f854e5e87d48df08f020746c21c441dccc2268f496d276
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.37.0 (upcoming)
2
+ * Now it's possible to initialize DotVM environment with one command.
3
+
4
+ # 0.36.0
5
+ * Now you are informed about syntax errors in YAML files
6
+
1
7
  # 0.35.1
2
8
  * Bugfix for groups support
3
9
 
data/README.md CHANGED
@@ -35,4 +35,4 @@ $ mkdir projects
35
35
  ```
36
36
 
37
37
  ## More information
38
- For more information please follow to [wiki](https://github.com/vagrant-dotvm/vagrant-dotvm/wiki/Getting-started).
38
+ For more information please follow to [documentation](https://github.com/vagrant-dotvm/documentation).
@@ -0,0 +1,49 @@
1
+ require 'fileutils'
2
+
3
+ module VagrantPlugins
4
+ module Dotvm
5
+ class Command < Vagrant.plugin(2, :command)
6
+ COMMANDS = %w(init)
7
+
8
+ def self.synopsis
9
+ 'manages DotVM configuration'
10
+ end
11
+
12
+ def execute
13
+ opts = OptionParser.new do |o|
14
+ o.banner = sprintf 'Usage: vagrant dotvm <%s>', COMMANDS.join('|')
15
+ o.separator ''
16
+
17
+ o.on('-h', '--help', 'Print this help') do
18
+ safe_puts(opts.help)
19
+ return nil
20
+ end
21
+ end
22
+
23
+ argv = parse_options(opts)
24
+ command = argv[0]
25
+
26
+ if !command || !COMMANDS.include?(command)
27
+ safe_puts opts.help
28
+ return nil
29
+ end
30
+
31
+ send("command_#{command}")
32
+ end
33
+
34
+ private
35
+
36
+ def command_init
37
+ if File.exist? "#{FileUtils.pwd}/Vagrantfile"
38
+ fail Vagrant::Errors::VagrantError.new, 'DotVM: Refusing to init in this directory, Vagrantfile already exists.'
39
+ end
40
+
41
+ unless (Dir.entries(FileUtils.pwd) - %w(. ..)).empty?
42
+ @env.ui.warn 'DotVM: Directory is not empty, result is undefined.'
43
+ end
44
+
45
+ FileUtils.cp_r "#{SKEL_PATH}/.", FileUtils.pwd
46
+ end
47
+ end
48
+ end
49
+ end
@@ -1,6 +1,7 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
3
  UTILS_PATH = File.dirname(__FILE__) + '/../../utils'
4
+ SKEL_PATH = File.dirname(__FILE__) + '/../../skel'
4
5
  DOTVM_PROJECT_PATH = '/dotvm/project'
5
6
  DOTVM_FILES_PATH = "#{DOTVM_PROJECT_PATH}/files"
6
7
  end
@@ -3,6 +3,11 @@ module VagrantPlugins
3
3
  class Plugin < Vagrant.plugin(2)
4
4
  name 'Dotvm'
5
5
  description 'Easy YAML based multi machine config.'
6
+
7
+ command(:dotvm) do
8
+ require_relative 'command'
9
+ Command
10
+ end
6
11
  end # Plugin
7
12
  end # Dotvm
8
13
  end # VagrantPlugins
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
- VERSION = '0.36.0'
3
+ VERSION = '0.37.0.pre'
4
4
  end
5
5
  end
data/skel/Vagrantfile ADDED
@@ -0,0 +1,13 @@
1
+ #
2
+ # DotVM VagrantFile
3
+ #
4
+ # Please don't make any changes here.
5
+ # You should edit .yaml files to configure Vagrant in DotVM environment.
6
+ #
7
+
8
+ require 'vagrant-dotvm'
9
+
10
+ Vagrant.configure(2) do |config|
11
+ dotvm = VagrantPlugins::Dotvm::Dotvm.new __dir__
12
+ dotvm.inject config
13
+ end
@@ -0,0 +1,9 @@
1
+ #
2
+ # You can set Vagrant options here.
3
+ # Follow to documentation for more information.
4
+ # https://github.com/vagrant-dotvm/documentation/blob/master/options.md
5
+ #
6
+
7
+ #ssh:
8
+ # - name: forward_agent
9
+ # value: true
@@ -0,0 +1,13 @@
1
+ #
2
+ # You can define your machines here.
3
+ # Follow to documentation for more information.
4
+ # https://github.com/vagrant-dotvm/documentation/blob/master/vm_options.md
5
+ # https://github.com/vagrant-dotvm/documentation/blob/master/groups.md
6
+ # https://github.com/vagrant-dotvm/documentation/blob/master/networking.md
7
+ # https://github.com/vagrant-dotvm/documentation/blob/master/shared_folders.md
8
+ # https://github.com/vagrant-dotvm/documentation/blob/master/ssh_keys.md
9
+ #
10
+
11
+ #- nick: skel
12
+ # name: skel
13
+ # box: bento/centos-7.1
@@ -0,0 +1,11 @@
1
+ #
2
+ # You can set project variables here.
3
+ # Follow to documentation for more information.
4
+ # https://github.com/vagrant-dotvm/documentation/blob/master/variables.md#project-variables
5
+ #
6
+
7
+ #key1: value1
8
+ #array1:
9
+ # - element1
10
+ # - element2
11
+ # - element3
@@ -0,0 +1,7 @@
1
+ #
2
+ # You can set global variables here.
3
+ # Follow to documentation for more information.
4
+ # https://github.com/vagrant-dotvm/documentation/blob/master/variables.md#global-variables
5
+ #
6
+
7
+ # memory: 1024
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dotvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Magosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-15 00:00:00.000000000 Z
11
+ date: 2015-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,6 +53,7 @@ files:
53
53
  - README.md
54
54
  - Rakefile
55
55
  - lib/vagrant-dotvm.rb
56
+ - lib/vagrant-dotvm/command.rb
56
57
  - lib/vagrant-dotvm/config/abstractconfig.rb
57
58
  - lib/vagrant-dotvm/config/authorizedkey.rb
58
59
  - lib/vagrant-dotvm/config/buildimage.rb
@@ -84,6 +85,11 @@ files:
84
85
  - lib/vagrant-dotvm/replacer.rb
85
86
  - lib/vagrant-dotvm/variables.rb
86
87
  - lib/vagrant-dotvm/version.rb
88
+ - skel/Vagrantfile
89
+ - skel/options/skel.yaml
90
+ - skel/projects/skel/machines/skel.yaml
91
+ - skel/projects/skel/variables/skel.yaml
92
+ - skel/variables/skel.yaml
87
93
  - utils/add_host.sh
88
94
  - utils/authorize_key.sh
89
95
  - utils/setup_route.sh
@@ -103,9 +109,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
109
  version: '0'
104
110
  required_rubygems_version: !ruby/object:Gem::Requirement
105
111
  requirements:
106
- - - ">="
112
+ - - ">"
107
113
  - !ruby/object:Gem::Version
108
- version: '0'
114
+ version: 1.3.1
109
115
  requirements: []
110
116
  rubyforge_project:
111
117
  rubygems_version: 2.4.5.1