lib/generators/wcc/model_generator.rb in wcc-contentful-app-1.2.0 vs lib/generators/wcc/model_generator.rb in wcc-contentful-app-1.2.1

- old
+ new

@@ -26,18 +26,16 @@ package = JSON.parse(File.read('package.json')) deps = package['dependencies'] unless deps.try(:[], '@watermarkchurch/contentful-migration').present? run 'npm install --save @watermarkchurch/contentful-migration ts-node ' \ - 'typescript contentful-export' + 'typescript contentful-export' end end end def ensure_wrapper_script_in_bin_dir - unless inside('bin') { File.exist?('contentful') } - copy_file 'contentful_shell_wrapper', 'bin/contentful' - end + copy_file 'contentful_shell_wrapper', 'bin/contentful' unless inside('bin') { File.exist?('contentful') } if inside('bin') { File.exist?('release') } release = inside('bin') { File.read('release') } unless release.include?('contentful migrate') insert_into_file('bin/release', after: 'bundle exec rake db:migrate') do