Skip to content

Commit ad1499b

Browse files
author
Phil LaPier
committed
Change bourbon generate to bourbon install
1 parent bdec0a3 commit ad1499b

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
@disable-bundler
2-
Feature: Generate bourbon files
2+
Feature: Install bourbon files
33

44
Scenario: Bourbon generates a new bourbon installation
5-
When I generate bourbon files
5+
When I install bourbon files
66
Then the sass directories should have been generated
77
And the following directories should exist:
88
| bourbon |
99
| bourbon/lib |
1010
And the master bourbon partial should have been generated
1111
And the lib files should have been generated
12-
And the output should contain "Bourbon files generated to bourbon/"
12+
And the output should contain "Bourbon files installed to bourbon/"
1313

1414
Scenario: Generating does not overwrite an existing bourbon directory
15-
Given bourbon is already generated
16-
When I generate bourbon files
17-
Then the output should contain "Bourbon files already generated, doing nothing."
15+
Given bourbon is already installed
16+
When I install bourbon files
17+
Then the output should contain "Bourbon files already installed, doing nothing."

features/step_definitions/bourbon_steps.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Given /^bourbon is already generated$/ do
1+
Given /^bourbon is already installed$/ do
22
set_up_bourbon_directory
3-
generate_bourbon
3+
install_bourbon
44
end
55

6-
When /^I generate bourbon files$/ do
6+
When /^I install bourbon files$/ do
77
set_up_bourbon_directory
8-
generate_bourbon
8+
install_bourbon
99
end
1010

1111
When /^I update bourbon files$/ do

features/support/bourbon_support.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ def set_up_bourbon_directory
44
run_simple("bundle install")
55
end
66

7-
def generate_bourbon
8-
run_simple("bundle exec bourbon generate")
7+
def install_bourbon
8+
run_simple("bundle exec bourbon install")
99
end
1010

1111
def update_bourbon

features/update.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Feature: Update bourbon files
33

44
Scenario: Updating updates an existing bourbon install
5-
When I generate bourbon files
5+
When I install bourbon files
66
And I write to "bourbon/_bourbon.scss" with:
77
"""
88
foobar

lib/bourbon/generator.rb

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ def initialize(arguments)
77
end
88

99
def run
10-
if @subcommand == "generate"
11-
generate
10+
if @subcommand == "install"
11+
install
1212
elsif @subcommand == "update"
1313
update
1414
end
@@ -17,19 +17,19 @@ def run
1717
def update
1818
if bourbon_files_already_exist?
1919
remove_bourbon_directory
20-
generate_files
20+
install_files
2121
puts "Bourbon files updated."
2222
else
2323
puts "No existing bourbon installation. Doing nothing."
2424
end
2525
end
2626

27-
def generate
27+
def install
2828
if bourbon_files_already_exist?
29-
puts "Bourbon files already generated, doing nothing."
29+
puts "Bourbon files already installed, doing nothing."
3030
else
31-
generate_files
32-
puts "Bourbon files generated to bourbon/"
31+
install_files
32+
puts "Bourbon files installed to bourbon/"
3333
end
3434
end
3535

@@ -39,7 +39,7 @@ def bourbon_files_already_exist?
3939
Dir.exist?("bourbon")
4040
end
4141

42-
def generate_files
42+
def install_files
4343
make_lib_directory
4444
copy_in_sass_extensions
4545
copy_in_scss_files

0 commit comments

Comments
 (0)