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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9adc6fcbca2088bc8a637e0c215b21443b013389321e0fb5ecf0504b220f1c4c
4
- data.tar.gz: b380e11dd246554885af2565ae7805f7200daac51f6ed514420468acf6666aa3
3
+ metadata.gz: 5b31fd2f59802a71cc1d006a5acbd405aaafb8dbc01e17b041993be4c61c5556
4
+ data.tar.gz: 331bf2a3f572b40720289c189eef9206d8015e81d6fb7ae1a331a68669dca636
5
5
  SHA512:
6
- metadata.gz: 365c5fd2787d865e483485b138f164b56ec5bb8ecffa607350edc82ed94b28cdbe5d82341fc91543be83cc7d3eabd7bee5f7d06711ef3bc449a9cb37f0f4249b
7
- data.tar.gz: b897fec0fe5fa23ed27f4b69d740668a10999fe752e92d1de6d305b7f117cc874d3ab47e3d6c5545feb9e1a41d975c179b826454bba80db7daf2a1f5be0750ab
6
+ metadata.gz: 3c217826762ffc9b28dc6acb09c5d15b586640433e04ba7b51437777b770af307519a29cd8d766de0a309c11f3886284c850c8c72d5c2cf94982885f3cd75516
7
+ data.tar.gz: b959226fb1774489fd022cb6e2f467f519c089eea7a0055b79a3c7f1647ba4813a83c7347edcebdfd167f7066d3f3342e83aa17bb63082076e2414336f83f492
@@ -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?('porvision-vagrant')
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
- options_klass_obj = ProvisionVagrant::Options.new
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
@@ -6,7 +6,7 @@ module ProvisionVagrant
6
6
  VAGRANTFILE_TARGET_NAME = "Vagrantfile"
7
7
 
8
8
  def self.version
9
- "1.0.3"
9
+ "1.0.4"
10
10
  end
11
11
 
12
12
  def self.write_string_to_File(string, file_path)
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provision-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shanti Braford