Class: RSGem::Tasks::CreateGem

Inherits:
Base
  • Object
show all
Defined in:
lib/rsgem/tasks/create_gem.rb

Constant Summary collapse

OUTPUT =
OutputStruct.new(
  name: 'Create gem',
  success: :success_message
)

Instance Attribute Summary

Attributes inherited from Base

#args, #context

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Methods included from Output

#with_output

Constructor Details

This class inherits a constructor from RSGem::Tasks::Base

Instance Method Details

#performObject



11
12
13
14
15
16
# 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