Skip to content

Commit

Permalink
- handle remote usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanel Suurhans committed Sep 8, 2010
1 parent d6dfceb commit 3b14a65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cucumber.rb
Expand Up @@ -55,6 +55,6 @@

generate "cucumber:install #{arguments.join(" ")}"

create_file "config/cucumber.yml", File.binread("#{File.dirname(__FILE__)}/resources/cucumber.yml"), :force => true
get "#{File.dirname(__FILE__)}/resources/cucumber.yml", "config/cucumber.yml", :force => true

end
4 changes: 2 additions & 2 deletions layout.rb
Expand Up @@ -6,15 +6,15 @@
remove_file "application.html.erb"

if @use_haml
create_file "application.html.haml", File.binread("#{File.dirname(__FILE__)}/resources/layout.html.haml")
get "#{File.dirname(__FILE__)}/resources/layout.html.haml", "application.html.haml"

gsub_file "application.html.haml", /\/ insert javascript here\n/, "= include_javascripts :application\n" if @use_jammit.present?
gsub_file "application.html.haml", /\/ insert javascript here\n/, "= javascript_include_tag :defaults, 'application'\n" if @use_jammit.nil?

gsub_file "application.html.haml", /\/ insert stylesheet here\n/, "= include_stylesheets :application\n" if @use_jammit.present?
gsub_file "application.html.haml", /\/ insert stylesheet here\n/, "= stylesheet_link_tag 'reset'\n" if @use_jammit.nil?
else
create_file "application.html.erb", File.binread("#{File.dirname(__FILE__)}/resources/layout.html.erb")
get "#{File.dirname(__FILE__)}/resources/layout.html.erb", "application.html.erb"

gsub_file "application.html.erb", /<!-- insert javascript here -->\n/, "<%= include_javascripts :application %>\n" if @use_jammit.present?
gsub_file "application.html.erb", /<!-- insert javascript here -->\n/, "<%= javascript_include_tag :defaults, 'application' %>\n" if @use_jammit.nil?
Expand Down
2 changes: 1 addition & 1 deletion rspec.rb
Expand Up @@ -28,7 +28,7 @@

generate "rspec:install"

create_file ".rspec", File.binread("#{File.dirname(__FILE__)}/resources/.rspec"), :force => true
get "#{File.dirname(__FILE__)}/resources.rspec", ".rspec", :force => true

if yes?("Install mocha?", :yellow)
gem 'mocha', :group => :test
Expand Down

0 comments on commit 3b14a65

Please sign in to comment.