comfy 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/comfy/command_executioner.rb +2 -2
- data/lib/comfy/version.rb +1 -1
- data/lib/comfy.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aa53fce44a918f5b54b65237682bd48d1dbd3a0
|
4
|
+
data.tar.gz: 510cf9dafec3ff2fd810601347a827f81591ab74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
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
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')
|