class Pantograph::Actions::IsVerboseAction

Public Class Methods

authors() click to toggle source
# File pantograph/lib/pantograph/actions/is_verbose.rb, line 38
def self.authors
  # So no one will ever forget your contribution to pantograph :) You are awesome btw!
  ['johnknapprs']
end
available_options() click to toggle source
# File pantograph/lib/pantograph/actions/is_verbose.rb, line 24
def self.available_options
  []
end
description() click to toggle source

@!group Documentation

# File pantograph/lib/pantograph/actions/is_verbose.rb, line 16
def self.description
  'Returns Boolean whether `--verbose` flag was set'
end
details() click to toggle source
# File pantograph/lib/pantograph/actions/is_verbose.rb, line 20
def self.details
  ''
end
example_code() click to toggle source

Returns an array of string of sample usage of this action

# File pantograph/lib/pantograph/actions/is_verbose.rb, line 54
def self.example_code
  [
    'if is_verbose?
       UI.important("Verbosity is turned on!")
     else
       UI.message("Verbosity is turned off!")
     end
    '

  ]
end
is_supported?(platform) click to toggle source
# File pantograph/lib/pantograph/actions/is_verbose.rb, line 43
def self.is_supported?(platform)
  true
end
output() click to toggle source
# File pantograph/lib/pantograph/actions/is_verbose.rb, line 28
def self.output
  [
    ['IS_VERBOSE', 'Boolean whether verbosity flag was set']
  ]
end
return_value() click to toggle source
# File pantograph/lib/pantograph/actions/is_verbose.rb, line 34
def self.return_value
  # If your method provides a return value, you can describe here what it does
end
run(params) click to toggle source
# File pantograph/lib/pantograph/actions/is_verbose.rb, line 8
def self.run(params)
  Actions.lane_context[:IS_VERBOSE] = PantographCore::Globals.verbose? ? true : false
end
step_text() click to toggle source

Is printed out in the Steps: output in the terminal Return nil if you don't want any logging in the terminal/JUnit Report

# File pantograph/lib/pantograph/actions/is_verbose.rb, line 49
def self.step_text
  self.action_name
end

Public Instance Methods

category() click to toggle source
# File pantograph/lib/pantograph/actions/is_verbose.rb, line 66
def category
  # Available Categories: ./pantograph/lib/pantograph/action.rb
  :misc
end