class MakersToolbelt::CommandLine::Interface

Attributes

answers[R]

Public Class Methods

ask_questions(question_set) click to toggle source
# File lib/makers_toolbelt/command_line/interface.rb, line 12
def self.ask_questions(question_set)
  new.send(question_set)
end
new() click to toggle source
# File lib/makers_toolbelt/command_line/interface.rb, line 16
def initialize
  @answers = {}
end

Public Instance Methods

randomize_bytes() click to toggle source
# File lib/makers_toolbelt/command_line/interface.rb, line 20
def randomize_bytes
  answers[:cohort_id] = GetPositiveNumber.call(question: "Enter cohort id: ")
  answers[:number_of_bytes] = GetPositiveNumber.call(question: "Enter required number of bytes: ")
  answers[:base_uri] = GetURI.call(question: "Enter base uri (press enter for #{HubClient::HUB_URL}): ")
  answers
end