Class: Bashly::Commands::Preview

Inherits:
Base
  • Object
show all
Defined in:
lib/bashly/commands/preview.rb

Instance Method Summary collapse

Methods inherited from Base

#config, #config_validator, #validate_config, #with_valid_config

Methods included from AssetHelper

#asset, #asset_content

Instance Method Details

#runObject



9
10
11
12
13
14
15
# File 'lib/bashly/commands/preview.rb', line 9

def run
  with_valid_config do
    command = Script::Command.new config
    script = Script::Wrapper.new command
    puts script.code
  end
end