Sha256: 117c329c3e10e769cd31af73165621887b25179e540a5ce431901bc2c648837f

Contents?: true

Size: 979 Bytes

Versions: 4

Compression:

Stored size: 979 Bytes

Contents

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

module Factor
  module CLI
    class Channel < 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

4 entries across 4 versions & 1 rubygems

Version Path
factor-0.0.91 lib/cli/channel.rb
factor-0.0.90 lib/cli/channel.rb
factor-0.0.89 lib/cli/channel.rb
factor-0.0.88 lib/cli/channel.rb