Module: Polka
- Defined in:
- lib/polka.rb,
lib/polka/cli.rb,
lib/polka/version.rb,
lib/polka/bootstrapper.rb,
lib/polka/operations/parsed_copying.rb
Defined Under Namespace
Modules: Operations
Classes: Bootstrapper, Cli
Constant Summary
collapse
- VERSION =
'0.0.2'
Class Method Summary
collapse
Class Method Details
.ask(question) ⇒ Object
26
27
28
29
30
|
# File 'lib/polka.rb', line 26
def self.ask(question)
$stdout.print question
$stdout.flush
$stdin.gets.chomp
end
|
.config ⇒ Object
14
15
16
|
# File 'lib/polka.rb', line 14
def self.config
@config ||= {}
end
|
.config=(hash) ⇒ Object
18
19
20
|
# File 'lib/polka.rb', line 18
def self.config=(hash)
@config = hash
end
|
.log(msg) ⇒ Object
22
23
24
|
# File 'lib/polka.rb', line 22
def self.log(msg)
$stdout.puts msg
end
|