Class: Rubysmith::Builders::RSpec::Binstub
- Inherits:
-
Object
- Object
- Rubysmith::Builders::RSpec::Binstub
- Defined in:
- lib/rubysmith/builders/rspec/binstub.rb
Overview
Builds RSpec binstub for project skeleton.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Builder) ⇒ Binstub
constructor
A new instance of Binstub.
Constructor Details
Class Method Details
.call ⇒ Object
12 |
# File 'lib/rubysmith/builders/rspec/binstub.rb', line 12 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/rubysmith/builders/rspec/binstub.rb', line 19 def call return configuration unless configuration.build_rspec builder.call(configuration.merge(template_path: "%project_name%/bin/rspec.erb")) .render .permit 0o755 configuration end |