nanoc-oo 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/features/cli.feature +5 -1
- data/lib/nanoc-oo.rb +7 -3
- data/lib/nanoc-oo/version.rb +1 -1
- metadata +1 -1
data/features/cli.feature
CHANGED
@@ -30,4 +30,8 @@ Feature: command line interface
|
|
30
30
|
Scenario: it describes actions
|
31
31
|
When $ nanoc-oo thesite
|
32
32
|
Then the output should contain "force"
|
33
|
-
Then the output should contain "classes"
|
33
|
+
Then the output should contain "classes"
|
34
|
+
|
35
|
+
Scenario: it hides site name in paths
|
36
|
+
When $ nanoc-oo MySite123
|
37
|
+
Then the output should not contain "MySite123/"
|
data/lib/nanoc-oo.rb
CHANGED
@@ -35,7 +35,9 @@ module NanocOO
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def wrap dir
|
38
|
-
|
38
|
+
Dir.chdir dir do
|
39
|
+
ForcedDataCopier.new.copy 'wrapper', '.'
|
40
|
+
end
|
39
41
|
|
40
42
|
#prepend_file join(dir,'Rules'), File.read(join(wrapper,'Rules'))
|
41
43
|
#directory 'lib', dir
|
@@ -53,8 +55,10 @@ module NanocOO
|
|
53
55
|
end
|
54
56
|
|
55
57
|
def delete_content dir
|
56
|
-
Dir.
|
57
|
-
|
58
|
+
Dir.chdir dir do
|
59
|
+
Dir['content/*'].each do |supposedly_file|
|
60
|
+
Force.remove_file supposedly_file
|
61
|
+
end
|
58
62
|
end
|
59
63
|
end
|
60
64
|
|
data/lib/nanoc-oo/version.rb
CHANGED