Permalink
Browse files

Change bourbon generate to bourbon install

  • Loading branch information...
1 parent bdec0a3 commit ad1499b30c8bf01b78f037ec09bf20c49a225152 Phil LaPier committed Jan 22, 2012
@@ -1,17 +1,17 @@
@disable-bundler
-Feature: Generate bourbon files
+Feature: Install bourbon files
Scenario: Bourbon generates a new bourbon installation
- When I generate bourbon files
+ When I install bourbon files
Then the sass directories should have been generated
And the following directories should exist:
| bourbon |
| bourbon/lib |
And the master bourbon partial should have been generated
And the lib files should have been generated
- And the output should contain "Bourbon files generated to bourbon/"
+ And the output should contain "Bourbon files installed to bourbon/"
Scenario: Generating does not overwrite an existing bourbon directory
- Given bourbon is already generated
- When I generate bourbon files
- Then the output should contain "Bourbon files already generated, doing nothing."
+ Given bourbon is already installed
+ When I install bourbon files
+ Then the output should contain "Bourbon files already installed, doing nothing."
@@ -1,11 +1,11 @@
-Given /^bourbon is already generated$/ do
+Given /^bourbon is already installed$/ do
set_up_bourbon_directory
- generate_bourbon
+ install_bourbon
end
-When /^I generate bourbon files$/ do
+When /^I install bourbon files$/ do
set_up_bourbon_directory
- generate_bourbon
+ install_bourbon
end
When /^I update bourbon files$/ do
@@ -4,8 +4,8 @@ def set_up_bourbon_directory
run_simple("bundle install")
end
- def generate_bourbon
- run_simple("bundle exec bourbon generate")
+ def install_bourbon
+ run_simple("bundle exec bourbon install")
end
def update_bourbon
View
@@ -2,7 +2,7 @@
Feature: Update bourbon files
Scenario: Updating updates an existing bourbon install
- When I generate bourbon files
+ When I install bourbon files
And I write to "bourbon/_bourbon.scss" with:
"""
foobar
View
@@ -7,8 +7,8 @@ def initialize(arguments)
end
def run
- if @subcommand == "generate"
- generate
+ if @subcommand == "install"
+ install
elsif @subcommand == "update"
update
end
@@ -17,19 +17,19 @@ def run
def update
if bourbon_files_already_exist?
remove_bourbon_directory
- generate_files
+ install_files
puts "Bourbon files updated."
else
puts "No existing bourbon installation. Doing nothing."
end
end
- def generate
+ def install
if bourbon_files_already_exist?
- puts "Bourbon files already generated, doing nothing."
+ puts "Bourbon files already installed, doing nothing."
else
- generate_files
- puts "Bourbon files generated to bourbon/"
+ install_files
+ puts "Bourbon files installed to bourbon/"
end
end
@@ -39,7 +39,7 @@ def bourbon_files_already_exist?
Dir.exist?("bourbon")
end
- def generate_files
+ def install_files
make_lib_directory
copy_in_sass_extensions
copy_in_scss_files

0 comments on commit ad1499b

Please sign in to comment.