Class: Dude::Setup::Github

Inherits:
Object
  • Object
show all
Defined in:
lib/dude/setup/github.rb

Instance Method Summary collapse

Constructor Details

#initialize(prompt) ⇒ Github

Returns a new instance of Github.



6
7
8
# File 'lib/dude/setup/github.rb', line 6

def initialize(prompt)
  @prompt = prompt
end

Instance Method Details

#call(settings:) ⇒ Object



10
11
12
13
# File 'lib/dude/setup/github.rb', line 10

def call(settings:)
  settings[:github][:token] = setup_token
  settings
end