Sha256: 432021c706b213e49311fe0da5323d3d923b8541e99e4eb90fc668a9a5e7c4e3

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

module QB; end

# @todo document QB::CLI module.
module QB::CLI 
  
  # Play an Ansible playbook (like `state.yml`) in the QB environment 
  # (sets up path env vars, IO streams, etc.).
  # 
  # @param [type] arg_name
  #   @todo Add name param description.
  # 
  # @return [return_type]
  #   @todo Document return value.
  # 
  def self.play args
    if args.empty?
      raise "Need path to playbook in first arg."
    end
    
    path = QB::Util.resolve args[0]
    
    unless path.file?
      raise "Can't find Ansible playbook at #{ path.to_s }"
    end
    
    
    
  end # .play
  
end # module QB::CLI


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qb-0.3.3 lib/qb/cli/play.rb
qb-0.3.2 lib/qb/cli/play.rb
qb-0.3.1 lib/qb/cli/play.rb