Class: Factor::CLI::ChannelTask

Inherits:
Command
  • Object
show all
Defined in:
lib/cli/channel_task.rb

Instance Method Summary collapse

Instance Method Details

#add(name, directory) ⇒ Object



27
28
29
30
31
32
# File 'lib/cli/channel_task.rb', line 27

def add(name,directory)
  
  #contents=File.open(File.expand_path(filename), "rb") {|f| f.read}
  
  puts @client.add_channel(name,directory)
end

#call(channel, method, target) ⇒ Object



12
13
14
15
16
# File 'lib/cli/channel_task.rb', line 12

def call(channel, method, target)
  
  puts "not implemented"

end

#listObject

method_option :key, :alias=>“-k”, :type=>:string, :desc=>“key reference”



22
23
24
# File 'lib/cli/channel_task.rb', line 22

def list
  puts @client.get_channels
end

#remove(name) ⇒ Object



35
36
37
# File 'lib/cli/channel_task.rb', line 35

def remove(name)
  puts @client.remove_channel(name)
end