Class: TerraspaceBundler::CLI::Bundle

Inherits:
TerraspaceBundler::Command show all
Defined in:
lib/terraspace_bundler/cli/bundle.rb

Instance Method Summary collapse

Methods inherited from TerraspaceBundler::Command

alter_command_description, command_help, dispatch, exit_on_failure?, website

Instance Method Details

#example(mod, example) ⇒ Object



49
50
51
# File 'lib/terraspace_bundler/cli/bundle.rb', line 49

def example(mod, example)
  TB::Example.new(options.merge(mod: mod, example: example)).run
end

#info(mod) ⇒ Object



17
18
19
# File 'lib/terraspace_bundler/cli/bundle.rb', line 17

def info(mod)
  TB::Info.new(options.merge(mod: mod)).run
end

#installObject



24
25
26
# File 'lib/terraspace_bundler/cli/bundle.rb', line 24

def install
  TB::Runner.new(options).run
end

#listObject



10
11
12
# File 'lib/terraspace_bundler/cli/bundle.rb', line 10

def list
  TB::List.new(options).run
end

#purge_cacheObject



31
32
33
# File 'lib/terraspace_bundler/cli/bundle.rb', line 31

def purge_cache
  PurgeCache.new(options).run
end

#update(*mods) ⇒ Object



38
39
40
41
# File 'lib/terraspace_bundler/cli/bundle.rb', line 38

def update(*mods)
  TB.update_mode = true
  TB::Runner.new(options.merge(mods: mods)).run
end