Class: Rubycc::Rmake::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/rubycc/rmake/model.rb

Overview

One shell command in an execution step: its expanded text with the recipe-line prefixes already interpreted. silent (@), ignore_error (-) and force (+) are retained as attributes so a dumper can show them; B1 only plans, it does not run anything.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:, silent:, ignore_error:, force:) ⇒ Command

Returns a new instance of Command.



68
69
70
71
72
73
# File 'lib/rubycc/rmake/model.rb', line 68

def initialize(text:, silent:, ignore_error:, force:)
  @text = text
  @silent = silent
  @ignore_error = ignore_error
  @force = force
end

Instance Attribute Details

#forceObject (readonly)

Returns the value of attribute force.



66
67
68
# File 'lib/rubycc/rmake/model.rb', line 66

def force
  @force
end

#ignore_errorObject (readonly)

Returns the value of attribute ignore_error.



66
67
68
# File 'lib/rubycc/rmake/model.rb', line 66

def ignore_error
  @ignore_error
end

#silentObject (readonly)

Returns the value of attribute silent.



66
67
68
# File 'lib/rubycc/rmake/model.rb', line 66

def silent
  @silent
end

#textObject (readonly)

Returns the value of attribute text.



66
67
68
# File 'lib/rubycc/rmake/model.rb', line 66

def text
  @text
end

Instance Method Details

#force?Boolean

Returns:

  • (Boolean)


83
84
85
# File 'lib/rubycc/rmake/model.rb', line 83

def force?
  @force
end

#ignore_error?Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/rubycc/rmake/model.rb', line 79

def ignore_error?
  @ignore_error
end

#silent?Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/rubycc/rmake/model.rb', line 75

def silent?
  @silent
end