Class: FluentCommandBuilder::NuGet::V20::Help

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

Instance Method Summary collapse

Methods inherited from CommandBase

#configure!, #execute!, #to_s

Constructor Details

#initialize(underlying_builder, command = nil) ⇒ Help

Returns a new instance of Help.



107
108
109
110
111
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 107

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

Instance Method Details

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

Yields:

  • (@b)


112
113
114
115
116
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 112

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

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

Yields:

  • (@b)


122
123
124
125
126
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 122

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

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

Yields:

  • (@b)


117
118
119
120
121
# File 'lib/fluent_command_builder/command_builders/nuget_20.rb', line 117

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