Class: FluentCommandBuilder::Bundle::V12::Bundle

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder) ⇒ Bundle

Returns a new instance of Bundle.



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

def initialize(underlying_builder)
  super underlying_builder
end

Instance Method Details

#cacheObject



27
28
29
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 27

def cache
  Cache.new @b
end

#checkObject



30
31
32
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 30

def check
  Check.new @b
end

#cleanObject



33
34
35
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 33

def clean
  Clean.new @b
end

#config(name, value = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


36
37
38
39
40
41
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 36

def config(name, value=nil)
  @b.append " config #{@b.format name}"
  @b.append " #{@b.format value}" unless value.nil?
  yield @b if block_given?
  self
end

#console(group = nil) {|@b| ... } ⇒ Object

Yields:

  • (@b)


42
43
44
45
46
47
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 42

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

#exec(command) {|@b| ... } ⇒ Object

Yields:

  • (@b)


48
49
50
51
52
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 48

def exec(command)
  @b.append " exec #{@b.format command}"
  yield @b if block_given?
  self
end

#gem(gem) ⇒ Object



53
54
55
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 53

def gem(gem)
  Gem.new @b, gem
end

#initObject



56
57
58
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 56

def init
  Init.new @b
end

#installObject



59
60
61
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 59

def install
  Install.new @b
end

#open(gem) {|@b| ... } ⇒ Object

Yields:

  • (@b)


62
63
64
65
66
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 62

def open(gem)
  @b.append " open #{@b.format gem}"
  yield @b if block_given?
  self
end

#outdated(gem = nil) ⇒ Object



67
68
69
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 67

def outdated(gem=nil)
  Outdated.new @b, gem
end

#packageObject



70
71
72
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 70

def package
  Package.new @b
end

#platformObject



73
74
75
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 73

def platform
  Platform.new @b
end

#show(gem = nil) ⇒ Object



76
77
78
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 76

def show(gem=nil)
  Show.new @b, gem
end

#update(gem = nil) ⇒ Object



79
80
81
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 79

def update(gem=nil)
  Update.new @b, gem
end

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

Yields:

  • (@b)


82
83
84
85
86
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 82

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

#vizObject



87
88
89
# File 'lib/fluent_command_builder/command_builders/bundle_12.rb', line 87

def viz
  Viz.new @b
end