Sha256: 08fbae1aff1e21070b7e8f3279fc33ae326e92d54e649d608779b67d0166b1c2

Contents?: true

Size: 918 Bytes

Versions: 10

Compression:

Stored size: 918 Bytes

Contents

require 'rubygems'
require 'cli/command'
require 'zip/zip'
require 'zip/zipfilesystem'

module Factor
  module CLI
    class ChannelTask < Command

      desc "call CHANNEL METHOD TARGET","start a workflow"
      method_option :parameters, :type=>:hash, :default=>{}, :required=>false
      def call(channel, method, target)
        
        puts "not implemented"

      end
  
      
      
      desc "list", "list all the channels"
      #method_option :key, :alias=>"-k", :type=>:string, :desc=>"key reference"
      def list
        puts @client.get_channels
      end
    
      desc "add DIRECTORY DEFINITION", "add a key and value for the credential"
      def add(directory,definition_file)
        puts @client.add_channel(directory,definition_file)
      end
    
      desc "remove NAME", "remove a workflow"
      def remove(name)
        puts @client.remove_channel(name)
      end
  

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
factor-0.1.10 lib/cli/channel_task.rb
factor-0.1.09 lib/cli/channel_task.rb
factor-0.1.07 lib/cli/channel_task.rb
factor-0.1.06 lib/cli/channel_task.rb
factor-0.1.05 lib/cli/channel_task.rb
factor-0.1.04 lib/cli/channel_task.rb
factor-0.1.03 lib/cli/channel_task.rb
factor-0.1.02 lib/cli/channel_task.rb
factor-0.1.01 lib/cli/channel_task.rb
factor-0.1.00 lib/cli/channel_task.rb