Skip to content

Commit

Permalink
* @config.token references hipchat searcher auth_token
Browse files Browse the repository at this point in the history
  • Loading branch information
mgi166 committed Sep 22, 2014
1 parent 115134b commit f0f981e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/hipchat_searcher/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ class Command
def initialize(pattern, options)
@pattern = pattern
@options = options
@options.config = Config.new

config_valid!
@options.token = Token.token
end

def self.run(pattern, options)
Expand Down Expand Up @@ -35,7 +33,7 @@ def simple_run
private

def all_room
Room.new(@options.config.token, @options.room_options).all_room
Room.new(@options.token, @options.room_options).all_room
end

def rooms
Expand Down
2 changes: 1 addition & 1 deletion lib/hipchat_searcher/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def initialize(pattern, room, options)
@pattern = pattern
@room = room
@options = options
@message = Message.new(@options.config.token, @options.message_options)
@message = Message.new(@options.token, @options.message_options)
end

def self.run(pattern, room, options)
Expand Down

0 comments on commit f0f981e

Please sign in to comment.