Skip to content

Commit

Permalink
Avoid debug symbols when showing the version
Browse files Browse the repository at this point in the history
  • Loading branch information
elcuervo committed Nov 6, 2013
1 parent 0e38bbb commit 0628065
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/air
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ begin

"list" => Airplay::CLI.method(:list),

"version" => lambda { puts Airplay::CLI::VERSION },
"version" => Airplay::CLI.method(:version),

"play" => lambda { |video|
options = { device: @device || Airplay.devices.first }
Expand Down
9 changes: 9 additions & 0 deletions lib/airplay/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ def help
EOS
end

# Public: Shows the current CLI version
#
# Returns nothing
#
def version
Airplay.configuration.load
puts Airplay::CLI::VERSION
end

# Public: Lists all the devices to STDOUT
#
# Returns nothing.
Expand Down

0 comments on commit 0628065

Please sign in to comment.