lib/cli/server_task.rb in factor-0.0.7 vs lib/cli/server_task.rb in factor-0.0.8
- old
+ new
@@ -3,11 +3,14 @@
module Factor
module CLI
class ServerTask < Command
desc "start", "start the server"
+ method_option :tags, :alias=>"-t", :type=>:hash, :desc=>"Optional tags to identify from workflow"
def start
engine = Factor::Runtime::Engine.new(get_config[:email],get_config[:token])
+
+ options.tags.each {|tag,value| engine.tag(tag,value)}
puts "loading channels"
engine = @client.load_channels(engine)
puts "loading channels complete"
\ No newline at end of file