provision-vagrant 1.0.3 → 1.0.4
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 +4 -4
- data/bin/provision-vagrant +2 -5
- data/lib/provision_vagrant.rb +1 -1
- data/lib/pv_initializer.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b31fd2f59802a71cc1d006a5acbd405aaafb8dbc01e17b041993be4c61c5556
|
4
|
+
data.tar.gz: 331bf2a3f572b40720289c189eef9206d8015e81d6fb7ae1a331a68669dca636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c217826762ffc9b28dc6acb09c5d15b586640433e04ba7b51437777b770af307519a29cd8d766de0a309c11f3886284c850c8c72d5c2cf94982885f3cd75516
|
7
|
+
data.tar.gz: b959226fb1774489fd022cb6e2f467f519c089eea7a0055b79a3c7f1647ba4813a83c7347edcebdfd167f7066d3f3342e83aa17bb63082076e2414336f83f492
|
data/bin/provision-vagrant
CHANGED
@@ -4,20 +4,17 @@ require_relative '../lib/provision_vagrant'
|
|
4
4
|
|
5
5
|
# Require all Ruby files in 'lib/'
|
6
6
|
Dir[File.join(__dir__, '..', 'lib', '*.rb')].each do |file|
|
7
|
-
require file unless file.end_with?('
|
7
|
+
require file unless file.end_with?('provision-vagrant')
|
8
8
|
end
|
9
9
|
|
10
10
|
def main
|
11
11
|
include ProvisionVagrant
|
12
12
|
|
13
|
-
|
14
|
-
options = options_klass_obj.parse_options
|
15
|
-
options_klass_obj.help 'New project name must be specified. Ex: provision-vagrant foo-app' if ARGV.empty?
|
13
|
+
ProvisionVagrant.help('New project name must be specified. Ex: provision-vagrant foo-app' ) if ARG.empty?
|
16
14
|
|
17
15
|
project_name = ARGV[0]
|
18
16
|
options[:project_name] = project_name
|
19
17
|
|
20
|
-
puts "\n\n options in main bin app: #{options.inspect}\n\n"
|
21
18
|
generator = Generator.new(options)
|
22
19
|
generator.generate
|
23
20
|
end
|
data/lib/provision_vagrant.rb
CHANGED
data/lib/pv_initializer.rb
CHANGED
@@ -70,7 +70,6 @@ module ProvisionVagrant
|
|
70
70
|
|
71
71
|
def source_vagrantfile_path
|
72
72
|
@_source_vagrantfile_path ||= File.join(gem_template_dir, VAGRANTFILE_NAME)
|
73
|
-
#@_source_vagrantfile_path ||= File.join(Dir.pwd, "..", VAGRANTFILE_NAME)
|
74
73
|
end
|
75
74
|
|
76
75
|
def target_vagrantfile_path
|
@@ -78,7 +77,6 @@ module ProvisionVagrant
|
|
78
77
|
end
|
79
78
|
|
80
79
|
def source_post_hook_path
|
81
|
-
#@_source_post_hook_path ||= File.join(Dir.pwd, "..", POST_HOOK_FILE_NAME)
|
82
80
|
@_source_post_hook_path ||= File.join(gem_template_dir, POST_HOOK_FILE_NAME)
|
83
81
|
end
|
84
82
|
|
@@ -87,7 +85,6 @@ module ProvisionVagrant
|
|
87
85
|
end
|
88
86
|
|
89
87
|
def source_provision_vagrant_config_path
|
90
|
-
#@_source_provision_vagrant_config_path ||= File.join(Dir.pwd, "..", PROVISION_VAGRANT_CONFIG_FILE_NAME)
|
91
88
|
@_source_provision_vagrant_config_path ||= File.join(gem_template_dir, PROVISION_VAGRANT_CONFIG_FILE_NAME)
|
92
89
|
end
|
93
90
|
|