Class: Gitpt

Inherits:
Object
  • Object
show all
Includes:
Geordi::Interaction
Defined in:
lib/geordi/gitpt.rb

Constant Summary collapse

SETTINGS_FILE_NAME =
'.gitpt'
PROJECT_IDS_FILE_NAME =
'.pt_project_id'

Instance Method Summary collapse

Methods included from Geordi::Interaction

#announce, #fail, #note, #note_cmd, #prompt, #strip_heredoc, #success, #warn

Constructor Details

#initializeGitpt

Returns a new instance of Gitpt.



10
11
12
# File 'lib/geordi/gitpt.rb', line 10

def initialize
  self.highline = HighLine.new
end

Instance Method Details

#runObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/geordi/gitpt.rb', line 14

def run
  settings = read_settings
  client = build_client(settings)

  puts 'Connecting to Pivotal Tracker...'

  projects = load_projects(client)
  applicable_stories = load_applicable_stories(projects)
  choose_story(client.me, applicable_stories)
end