Module: Platform

Defined in:
lib/hanami/devtools/integration/platform.rb,
lib/hanami/devtools/integration/platform/os.rb,
lib/hanami/devtools/integration/platform/engine.rb,
lib/hanami/devtools/integration/platform/matcher.rb

Overview

Matchers for current OS, Ruby engine.

Since:

  • 0.2.0

Defined Under Namespace

Modules: Engine, Os Classes: Matcher

Class Method Summary collapse

Class Method Details

.ci?Boolean

Returns:

  • (Boolean)

Since:

  • 0.2.0



11
12
13
# File 'lib/hanami/devtools/integration/platform.rb', line 11

def self.ci?
  ENV.key?("CI")
end

.match(&blk) ⇒ Object

Since:

  • 0.2.0



15
16
17
# File 'lib/hanami/devtools/integration/platform.rb', line 15

def self.match(&blk)
  Matcher.match(&blk)
end

.match?(**args) ⇒ Boolean

Returns:

  • (Boolean)

Since:

  • 0.2.0



19
20
21
# File 'lib/hanami/devtools/integration/platform.rb', line 19

def self.match?(**args)
  Matcher.match?(**args)
end