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