Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't run file merge commands in extension/form generators when --pretend option is present. #1942

Merged
merged 1 commit into from

2 participants

@ugisozols ugisozols Don't run file merge commands in extension/form generators when
--pretend option is present.

When --pretend option is present no files are being actually created
so when extension/form generator tries to merge locales, seeds etc.
it fails because needed files doesn't exist.
e7e1b42
@parndt parndt merged commit e7e1b42 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 13, 2012
  1. @ugisozols

    Don't run file merge commands in extension/form generators when

    ugisozols authored
    --pretend option is present.
    
    When --pretend option is present no files are being actually created
    so when extension/form generator tries to merge locales, seeds etc.
    it fails because needed files doesn't exist.
This page is out of date. Refresh to see the latest.
View
8 core/lib/generators/refinery/engine/engine_generator.rb
@@ -22,11 +22,13 @@ def generate
evaluate_templates!
- merge_locales!
+ unless options[:pretend]
+ merge_locales!
- copy_or_merge_seeds!
+ copy_or_merge_seeds!
- append_extension_to_gemfile!
+ append_extension_to_gemfile!
+ end
finalize_extension!
end
View
8 core/lib/generators/refinery/form/form_generator.rb
@@ -16,11 +16,13 @@ def generate
evaluate_templates!
- merge_locales!
+ unless options[:pretend]
+ merge_locales!
- copy_or_merge_seeds!
+ copy_or_merge_seeds!
- append_extension_to_gemfile!
+ append_extension_to_gemfile!
+ end
finalize_extension!
end
Something went wrong with that request. Please try again.