Class: SourceMonitor::Setup::InstallGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/source_monitor/setup/install_generator.rb

Instance Method Summary collapse

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