class RSGem::Tasks::CreateGem
Constants
- OUTPUT
Public Instance Methods
perform()
click to toggle source
# File lib/rsgem/tasks/create_gem.rb, line 11 def perform return if system(shell_command, out: '/dev/null') raise RSGem::Errors::Base, "Failed to run `bundle gem'. Check bundler is installed in "\ "your system or install it with `gem install bundler'.`" end
Private Instance Methods
bundler_options()
click to toggle source
# File lib/rsgem/tasks/create_gem.rb, line 20 def bundler_options context.bundler_options end
shell_command()
click to toggle source
# File lib/rsgem/tasks/create_gem.rb, line 28 def shell_command [ "bundle gem #{context.gem_name} --test=rspec --coc --mit", bundler_options ].compact.join(' ') end
success_message()
click to toggle source
# File lib/rsgem/tasks/create_gem.rb, line 24 def success_message "Gem created with bundler options: #{bundler_options}" if bundler_options end