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