Sha256: 3be23ee4a6b41df2e8d74225f0d67542b9b02a502d1f6eab586349f65b75ed26

Contents?: true

Size: 983 Bytes

Versions: 17

Compression:

Stored size: 983 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 NAME DIRECTORY", "add a key and value for the credential"
      def add(name,directory)
        
        #contents=File.open(File.expand_path(filename), "rb") {|f| f.read}
        
        puts @client.add_channel(name,directory)
      end
    
      desc "remove NAME", "remove a workflow"
      def remove(name)
        puts @client.remove_channel(name)
      end
  

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
factor-0.0.99 lib/cli/channel_task.rb
factor-0.0.98 lib/cli/channel_task.rb
factor-0.0.97 lib/cli/channel_task.rb
factor-0.0.96 lib/cli/channel_task.rb
factor-0.0.95 lib/cli/channel_task.rb
factor-0.0.94 lib/cli/channel_task.rb
factor-0.0.93 lib/cli/channel_task.rb
factor-0.0.92 lib/cli/channel_task.rb
factor-0.0.87 lib/cli/channel_task.rb
factor-0.0.86 lib/cli/channel_task.rb
factor-0.0.85 lib/cli/channel_task.rb
factor-0.0.84 lib/cli/channel_task.rb
factor-0.0.83 lib/cli/channel_task.rb
factor-0.0.82 lib/cli/channel_task.rb
factor-0.0.81 lib/cli/channel_task.rb
factor-0.0.8 lib/cli/channel_task.rb
factor-0.0.7 lib/cli/channel_task.rb