Class: Terraspace::CLI::New::Test::Bootstrap

Inherits:
Base
  • Object
show all
Defined in:
lib/terraspace/cli/new/test/bootstrap.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.optionsObject



3
4
5
6
7
# File 'lib/terraspace/cli/new/test/bootstrap.rb', line 3

def self.options
  [
    [:dir, default: ".", desc: "directory to write to"],
  ]
end

Instance Method Details

#createObject



11
12
13
14
15
16
# File 'lib/terraspace/cli/new/test/bootstrap.rb', line 11

def create
  return if @options[:test] == false
  puts "=> Creating test bootstrap structure"
  test_template_source(@options[:lang], "bootstrap")
  directory ".", options[:dir]
end