comfy 0.2.3 → 0.2.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
  SHA1:
3
- metadata.gz: dfeb89bed282c67ce88c35326f8330f0e939c3da
4
- data.tar.gz: bfc75720d28f8e4fc6a7881caf46c0fdd8e1f067
3
+ metadata.gz: 7aa53fce44a918f5b54b65237682bd48d1dbd3a0
4
+ data.tar.gz: 510cf9dafec3ff2fd810601347a827f81591ab74
5
5
  SHA512:
6
- metadata.gz: 3921725c4bd19010826e07d04a30e64103d2d888abdeb75f255aeb1b58038cc09eb04e5ce4dfcf202b5df6472dbe5badf4b9d6e2e8058766eafa863d5072361a
7
- data.tar.gz: f4030afee47f01e40509e650e77ff8b94e168465e2774a976baa05bf38096f1b8cd376baac6d74d66eeda9728e11959b1d083d81215edfa4f2d8c45ecb638f49
6
+ metadata.gz: b244a4337590a89b8f12f83931add985d99179b339de3869a8bb3b3b190d2f898daf4b8493307294df710195ecfdf951c08ed424f3aff895af8677574785ddde
7
+ data.tar.gz: 22d4c419e028fd6c95d41ccd76ce2399431ad96fb575a65ce870da0295030d9c698c78998a51bd292ac9a72476c42cdd080c188313b53a5b40d73e4f5fd4e35c
@@ -76,10 +76,10 @@ class Comfy::CommandExecutioner < Thor
76
76
  dir = options['destination']
77
77
  FileUtils.mkdir_p dir unless File.exist?(dir) && File.directory?(dir)
78
78
 
79
- FileUtils.cp_r(File.join(Comfy::Settings['template-dir'], '.'), dir)
79
+ FileUtils.cp_r(File.join(Comfy::TEMPLATE_DIR, '.'), dir)
80
80
  $stdout.puts 'Template files copied successfully.'
81
81
  $stdout.puts "In order to use the new template directory change setting 'vm_templates_dir' in your configuration file to:"
82
- $stdout.puts "template-dir: #{dir}"
82
+ $stdout.puts "template-dir: #{File.absolute_path(dir)}"
83
83
  end
84
84
 
85
85
  method_option :"cache-dir",
data/lib/comfy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Comfy
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
data/lib/comfy.rb CHANGED
@@ -1,6 +1,6 @@
1
- require 'comfy/settings'
2
-
3
1
  module Comfy
2
+ require 'comfy/settings'
3
+
4
4
  GEM_DIR = File.realdirpath(File.join(File.dirname(__FILE__), '..'))
5
5
  DESCRIPTION_SCHEMA_FILE = File.join(GEM_DIR, 'schema', 'distribution_descriptor.schema')
6
6
  TEMPLATE_DIR = Comfy::Settings['template-dir'] || File.join(GEM_DIR, 'lib', 'templates')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Kimle