Module: Phare
- Defined in:
- lib/phare.rb,
lib/phare/cli.rb,
lib/phare/git.rb,
lib/phare/check.rb,
lib/phare/version.rb,
lib/phare/check/jscs.rb,
lib/phare/check_suite.rb,
lib/phare/check/jshint.rb,
lib/phare/check/rubocop.rb,
lib/phare/check/scss_lint.rb
Defined Under Namespace
Classes: CLI, Check, CheckSuite, Git
Constant Summary
collapse
- VERSION =
'0.7'
Class Method Summary
collapse
Class Method Details
.banner(string) ⇒ Object
34
35
36
37
38
|
# File 'lib/phare.rb', line 34
def self.banner(string)
Phare.puts '-' * string.length
Phare.puts string
Phare.puts '-' * string.length
end
|
.last_exit_status ⇒ Object
26
27
28
|
# File 'lib/phare.rb', line 26
def self.last_exit_status
$CHILD_STATUS.exitstatus
end
|
.puts(*args) ⇒ Object
30
31
32
|
# File 'lib/phare.rb', line 30
def self.puts(*args)
STDOUT.puts(*args)
end
|
.system(*args) ⇒ Object
18
19
20
|
# File 'lib/phare.rb', line 18
def self.system(*args)
Kernel.system(*args)
end
|
.system_output(args) ⇒ Object
22
23
24
|
# File 'lib/phare.rb', line 22
def self.system_output(args)
`#{args}`
end
|