Class: TrelloScrum::Cli
- Inherits:
-
Thor
- Object
- Thor
- TrelloScrum::Cli
- Defined in:
- lib/cli.rb
Instance Method Summary collapse
- #pdf(outfile) ⇒ Object
- #setup(developer_public_key, member_token, board_id = nil, list_name = nil) ⇒ Object
Instance Method Details
#pdf(outfile) ⇒ Object
21 22 23 24 25 |
# File 'lib/cli.rb', line 21 def pdf(outfile) setup_trello cards = get_cards generate_pdf(cards, outfile) end |
#setup(developer_public_key, member_token, board_id = nil, list_name = nil) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/cli.rb', line 45 def setup(developer_public_key, member_token, board_id=nil, list_name=nil) self.config["developer_public_key"] = developer_public_key self.config["member_token"] = member_token self.config["board_id"] = board_id if board_id self.config["list_name"] = list_name if list_name File.open(.config, "w") do |f| f.write JSON.pretty_generate(self.config) end puts "New config written to #{.config}" end |