class Aspera::Cli::Plugins::Alee
Constants
- ACTIONS
Public Instance Methods
execute_action()
click to toggle source
# File lib/aspera/cli/plugins/alee.rb, line 11 def execute_action command=self.options.get_next_command(ACTIONS) case command when :entitlement entitlement_id = self.options.get_option(:username,:mandatory) customer_id = self.options.get_option(:password,:mandatory) api_metering=AoC.metering_api(entitlement_id,customer_id) return {:type=>:single_object, :data=>api_metering.read('entitlement')[:data]} end end