Module: Plymouth
- Defined in:
- lib/plymouth.rb,
lib/plymouth/version.rb,
lib/plymouth/commands.rb
Constant Summary collapse
- VERSION =
"0.3.3"- Commands =
Pry::CommandSet.new do create_command "plymouth-off", "Disable Plymouth." do " Usage: plymouth-off\n Exit the REPL and turn Plymouth off for the duration of the test suite.\n BANNER\n\n def process\n Plymouth.disable!\n\n # exit the REPL\n run \"exit-all\"\n end\n end\n\n create_command \"plymouth-on\", \"Enable Plymouth.\" do\n banner <<-BANNER\n Usage: plymouth-on\n Enable Plymouth.\n BANNER\n\n def process\n Plymouth.enable!\n end\n end\nend\n"
Class Method Summary collapse
-
.disable! ⇒ Boolean
Disable plymouth.
-
.enable! ⇒ Boolean
Enable plymouth.
-
.enabled? ⇒ Boolean
Whether Plymouth is enabled.
Class Method Details
.disable! ⇒ Boolean
Disable plymouth.
18 19 20 |
# File 'lib/plymouth.rb', line 18 def self.disable! ::EE.enabled = false end |
.enable! ⇒ Boolean
Enable plymouth.
12 13 14 |
# File 'lib/plymouth.rb', line 12 def self.enable! ::EE.enabled = true end |
.enabled? ⇒ Boolean
Returns Whether Plymouth is enabled.
23 24 25 |
# File 'lib/plymouth.rb', line 23 def self.enabled? ::EE.enabled? end |