class PivotalIntegration::Command::Open

The class that encapsulates assigning current Pivotal Tracker Story to a user

Public Instance Methods

run(*arguments) click to toggle source
# File lib/pivotal-integration/command/open.rb, line 24
def run(*arguments)
  if arguments.first.try(:downcase) == 'project'
    Launchy.open "https://www.pivotaltracker.com/s/projects/#{story.project_id}"
  else
    Launchy.open story.url
  end
end