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_suite.rb,
lib/phare/check/eslint.rb,
lib/phare/check/rubocop.rb,
lib/phare/check/stylelint.rb

Defined Under Namespace

Classes: CLI, Check, CheckSuite, Git

Constant Summary collapse

VERSION =
'1.0.1'

Class Method Summary collapse

Class Method Details



33
34
35
36
37
# File 'lib/phare.rb', line 33

def self.banner(string)
  Phare.puts '-' * string.length
  Phare.puts string
  Phare.puts '-' * string.length
end

.last_exit_status ⇒ Object



25
26
27
# File 'lib/phare.rb', line 25

def self.last_exit_status
  $CHILD_STATUS.exitstatus
end

.puts(*args) ⇒ Object



29
30
31
# File 'lib/phare.rb', line 29

def self.puts(*args)
  STDOUT.puts(*args)
end

.system(*args) ⇒ Object



17
18
19
# File 'lib/phare.rb', line 17

def self.system(*args)
  Kernel.system(*args)
end

.system_output(args) ⇒ Object



21
22
23
# File 'lib/phare.rb', line 21

def self.system_output(args)
  `#{args}`
end