summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/init.rb
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2017-06-05 10:48:06 +1000
committerColby Swandale <colby@taplaboratories.com>2017-06-05 10:48:06 +1000
commit61f6f2a9113cf3facb1027606d2431a8bce8100d (patch)
treee59048a88f90df18668eeb22f85e1f51c49889d4 /lib/bundler/cli/init.rb
parent80273e7be8e6e044f2b7222d7013e5029110273c (diff)
downloadbundler-61f6f2a9113cf3facb1027606d2431a8bce8100d.tar.gz
rename feature flag to `init_gems_rb` and PR feedback
Diffstat (limited to 'lib/bundler/cli/init.rb')
-rw-r--r--lib/bundler/cli/init.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/cli/init.rb b/lib/bundler/cli/init.rb
index ae5d68853e..16330f6c6d 100644
--- a/lib/bundler/cli/init.rb
+++ b/lib/bundler/cli/init.rb
@@ -21,21 +21,21 @@ module Bundler
spec = Bundler.load_gemspec_uncached(gemspec)
- puts "Writing new Gemfile to #{SharedHelpers.pwd}/#{gemfile}"
File.open(gemfile, "wb") do |file|
file << "# Generated from #{gemspec}\n"
file << spec.to_gemfile
end
else
- puts "Writing new #{gemfile} to #{SharedHelpers.pwd}/#{gemfile}"
FileUtils.cp(File.expand_path("../../templates/#{gemfile}", __FILE__), gemfile)
end
+
+ puts "Writing new #{gemfile} to #{SharedHelpers.pwd}/#{gemfile}"
end
private
def gemfile
- @gemfile ||= Bundler.feature_flag.new_gemfile_name? ? "gems.rb" : "Gemfile"
+ @gemfile ||= Bundler.feature_flag.init_gems_rb? ? "gems.rb" : "Gemfile"
end
end
end