Class: HelixRuntime::CLI::Base

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/helix_runtime/cli.rb

Instance Method Summary collapse

Instance Method Details

#crate(name) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/helix_runtime/cli.rb', line 12

def crate(name)
  invoke CLI::Bootstrap, ["crates/#{name}", name], skip_bundle: true

  append_to_file "Gemfile", "gem '#{name}', path: 'crates/#{name}'\n"

  run "bundle" unless options.skip_bundle
end