Class: FluentCommandBuilder::Rake::V09::Rake

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/fluent_command_builder/command_builders/rake_09.rb

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, task = nil) ⇒ Rake

Returns a new instance of Rake.



24
25
26
27
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 24

def initialize(underlying_builder, task=nil)
  super underlying_builder
  @b.append " #{@b.format task, ' '}" unless task.nil?
end

Instance Method Details

#classic_namespace {|@b| ... } ⇒ Object

Yields:

  • (@b)


28
29
30
31
32
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 28

def classic_namespace
  @b.append ' --classic-namespace'
  yield @b if block_given?
  self
end

#describe(pattern = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


33
34
35
36
37
38
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 33

def describe(pattern=nil)
  @b.append ' --describe'
  @b.append " #{@b.format pattern}" unless pattern.nil?
  yield @b if block_given?
  self
end

#dry_run {|@b| ... } ⇒ Object

Yields:

  • (@b)


39
40
41
42
43
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 39

def dry_run
  @b.append ' --dry-run'
  yield @b if block_given?
  self
end

#execute(code) {|@b| ... } ⇒ Object

Yields:

  • (@b)


44
45
46
47
48
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 44

def execute(code)
  @b.append " --execute #{@b.format code}"
  yield @b if block_given?
  self
end

#execute_continue(code) {|@b| ... } ⇒ Object

Yields:

  • (@b)


49
50
51
52
53
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 49

def execute_continue(code)
  @b.append " --execute-continue #{@b.format code}"
  yield @b if block_given?
  self
end

#execute_print(code) {|@b| ... } ⇒ Object

Yields:

  • (@b)


54
55
56
57
58
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 54

def execute_print(code)
  @b.append " --execute-print #{@b.format code}"
  yield @b if block_given?
  self
end

#help {|@b| ... } ⇒ Object

Yields:

  • (@b)


59
60
61
62
63
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 59

def help
  @b.append ' --help'
  yield @b if block_given?
  self
end

#libdir(lib_dir) {|@b| ... } ⇒ Object

Yields:

  • (@b)


64
65
66
67
68
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 64

def libdir(lib_dir)
  @b.append " --libdir #{@b.format lib_dir}"
  yield @b if block_given?
  self
end

#no_deprecation_warnings {|@b| ... } ⇒ Object

Yields:

  • (@b)


69
70
71
72
73
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 69

def no_deprecation_warnings
  @b.append ' --no-deprecation-warnings'
  yield @b if block_given?
  self
end

#no_search {|@b| ... } ⇒ Object

Yields:

  • (@b)


74
75
76
77
78
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 74

def no_search
  @b.append ' --no-search'
  yield @b if block_given?
  self
end

#no_system {|@b| ... } ⇒ Object

Yields:

  • (@b)


79
80
81
82
83
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 79

def no_system
  @b.append ' --no-system'
  yield @b if block_given?
  self
end

#prereqs {|@b| ... } ⇒ Object

Yields:

  • (@b)


84
85
86
87
88
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 84

def prereqs
  @b.append ' --prereqs'
  yield @b if block_given?
  self
end

#quiet {|@b| ... } ⇒ Object

Yields:

  • (@b)


89
90
91
92
93
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 89

def quiet
  @b.append ' --quiet'
  yield @b if block_given?
  self
end

#rakefile(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


94
95
96
97
98
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 94

def rakefile(file)
  @b.append " --rakefile #{@b.format file}"
  yield @b if block_given?
  self
end

#rakelibdir(rake_lib_dir) {|@b| ... } ⇒ Object

Yields:

  • (@b)


99
100
101
102
103
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 99

def rakelibdir(rake_lib_dir)
  @b.append " --rakelibdir #{@b.format rake_lib_dir}"
  yield @b if block_given?
  self
end

#require(file) {|@b| ... } ⇒ Object

Yields:

  • (@b)


104
105
106
107
108
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 104

def require(file)
  @b.append " --require #{@b.format file}"
  yield @b if block_given?
  self
end

#rules {|@b| ... } ⇒ Object

Yields:

  • (@b)


109
110
111
112
113
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 109

def rules
  @b.append ' --rules'
  yield @b if block_given?
  self
end

#silent {|@b| ... } ⇒ Object

Yields:

  • (@b)


114
115
116
117
118
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 114

def silent
  @b.append ' --silent'
  yield @b if block_given?
  self
end

#system {|@b| ... } ⇒ Object

Yields:

  • (@b)


119
120
121
122
123
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 119

def system
  @b.append ' --system'
  yield @b if block_given?
  self
end

#tasks(pattern = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


124
125
126
127
128
129
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 124

def tasks(pattern=nil)
  @b.append ' --tasks'
  @b.append " #{@b.format pattern}" unless pattern.nil?
  yield @b if block_given?
  self
end

#trace {|@b| ... } ⇒ Object

Yields:

  • (@b)


130
131
132
133
134
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 130

def trace
  @b.append ' --trace'
  yield @b if block_given?
  self
end

#verbose {|@b| ... } ⇒ Object

Yields:

  • (@b)


135
136
137
138
139
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 135

def verbose
  @b.append ' --verbose'
  yield @b if block_given?
  self
end

#version {|@b| ... } ⇒ Object

Yields:

  • (@b)


140
141
142
143
144
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 140

def version
  @b.append ' --version'
  yield @b if block_given?
  self
end

#where(pattern = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


145
146
147
148
149
150
# File 'lib/fluent_command_builder/command_builders/rake_09.rb', line 145

def where(pattern=nil)
  @b.append ' --where'
  @b.append " #{@b.format pattern}" unless pattern.nil?
  yield @b if block_given?
  self
end