Class: Dryer::Clients::Gems::GemspecFiles::Create
- Inherits:
-
Services::SimpleService
- Object
- Services::SimpleService
- Dryer::Clients::Gems::GemspecFiles::Create
- Defined in:
- lib/dryer/clients/gems/gemspec_files/create.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(gem_name:, output_directory:) ⇒ Create
constructor
A new instance of Create.
Constructor Details
#initialize(gem_name:, output_directory:) ⇒ Create
Returns a new instance of Create.
11 12 13 14 15 16 17 |
# File 'lib/dryer/clients/gems/gemspec_files/create.rb', line 11 def initialize( gem_name:, output_directory: ) @gem_name = gem_name @output_directory = output_directory end |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 |
# File 'lib/dryer/clients/gems/gemspec_files/create.rb', line 19 def call { path: "#{output_directory}/#{gem_name}.gemspec", contents: file_contents } end |