class NewlineHw::Shell::Run

Generate a series of language specfic commands to start a project up This command will only be generated if the setup commands exectueded succesfully. It is safe to assume all files and folders are present a time of execution.

Attributes

config[R]
pwd[R]

Public Class Methods

new(pwd, config) click to toggle source
# File lib/newline_hw/shell/run.rb, line 13
def initialize(pwd, config)
  @pwd = pwd
  @config = config
end

Public Instance Methods

cmd() click to toggle source
# File lib/newline_hw/shell/run.rb, line 18
def cmd
  commands = []
  commands += Runners::Ruby.get_commands(pwd)
  commands += Runners::Javascript.get_commands(pwd)
  commands << "#{config.editor} ." if config.launch_editor
  commands.join(" && ")
end