Class: RSGem::Gem
- Inherits:
-
Object
- Object
- RSGem::Gem
- Defined in:
- lib/rsgem/gem.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(options) ⇒ Gem
constructor
A new instance of Gem.
Constructor Details
#initialize(options) ⇒ Gem
Returns a new instance of Gem.
7 8 9 |
# File 'lib/rsgem/gem.rb', line 7 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/rsgem/gem.rb', line 5 def @options end |
Instance Method Details
#create ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/rsgem/gem.rb', line 11 def create puts 'Creating gem...' create_gem add_code_analysis add_dependencies clean_gemfile ignore_gemfile_lock add_ci_provider clean_gemspec set_bundled_files set_license_file set_required_ruby_version bundle_dependencies run_rubocop puts "#{context.gem_name} created" end |