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.



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

def source
  @source
end

#targetObject (readonly)

Returns the value of attribute target.



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

def target
  @target
end

#watchingObject (readonly)

Returns the value of attribute watching.



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

def watching
  @watching
end

Instance Method Details

#runObject



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

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