Class: SourceMonitor::Setup::InstallGenerator
- Inherits:
-
Object
- Object
- SourceMonitor::Setup::InstallGenerator
- Defined in:
- lib/source_monitor/setup/install_generator.rb
Instance Method Summary collapse
-
#initialize(shell: ShellRunner.new) ⇒ InstallGenerator
constructor
A new instance of InstallGenerator.
- #run(mount_path: Workflow::DEFAULT_MOUNT_PATH) ⇒ Object
Constructor Details
#initialize(shell: ShellRunner.new) ⇒ InstallGenerator
Returns a new instance of InstallGenerator.
6 7 8 |
# File 'lib/source_monitor/setup/install_generator.rb', line 6 def initialize(shell: ShellRunner.new) @shell = shell end |
Instance Method Details
#run(mount_path: Workflow::DEFAULT_MOUNT_PATH) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/source_monitor/setup/install_generator.rb', line 10 def run(mount_path: Workflow::DEFAULT_MOUNT_PATH) shell.run( "bin/rails", "generate", "source_monitor:install", "--mount-path=#{mount_path}" ) end |