Class: Bashly::Commands::Render

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#config, #config_validator, #validate_config, #with_valid_config

Methods included from AssetHelper

#asset, #asset_content

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



40
41
42
# File 'lib/bashly/commands/render.rb', line 40

def source
  @source
end

#targetObject (readonly)

Returns the value of attribute target.



40
41
42
# File 'lib/bashly/commands/render.rb', line 40

def target
  @target
end

#watchingObject (readonly)

Returns the value of attribute watching.



40
41
42
# File 'lib/bashly/commands/render.rb', line 40

def watching
  @watching
end

Instance Method Details

#runObject



42
43
44
45
46
47
48
# File 'lib/bashly/commands/render.rb', line 42

def run
  if args['--list'] then show_list
  elsif args['--about'] then show_about
  else
    start_render
  end
end