Sha256: 02de9688a416523b68f15f1cc09f04a629620c2b615fae13223131242ec4742c

Contents?: true

Size: 918 Bytes

Versions: 5

Compression:

Stored size: 918 Bytes

Contents

# Requirements
# =====================================================================

# package


# Declarations
# =======================================================================

module QB; end


# Definitions
# =======================================================================

module QB::CLI
  
  # List available roles.
  # 
  # @example
  #   
  #   qb list --user
  #   qb list -u
  #   qb list --local
  #   qb list -l
  #   qb list --system
  #   qb list -s
  #   qb list --path=:system
  #   qb list --path=./roles
  #   qb list -p ./roles
  #   qb list gem
  # 
  # @todo
  #   We should have more types of help.
  # 
  # @return [1]
  #   Error exit status - we don't want `qb ... && ...` to move on to the
  #   second command when we end up falling back to `help`.
  # 
  def self.list args = []
    puts QB::Role.available
    puts
    
    return 1
  end # .help
  
end # module QB::CLI

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qb-0.3.17 lib/qb/cli/list.rb
qb-0.3.16 lib/qb/cli/list.rb
qb-0.3.15 lib/qb/cli/list.rb
qb-0.3.14 lib/qb/cli/list.rb
qb-0.3.13 lib/qb/cli/list.rb