Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move modules to end of class :bird:

  • Loading branch information...
commit 033ee7fa554d098dc526fa66188ea027e1cf8964 1 parent 5b7c972
@cldwalker authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/boson/runner.rb
View
12 lib/boson/runner.rb
@@ -59,6 +59,12 @@ def self.load_options
{force: true}
end
+ def self.add_command_help
+ Scientist.extend(ScientistExtension)
+ Command.extend(CommandExtension)
+ true # Ensure this method is only called once
+ end
+
module ScientistExtension
# Overrides Scientist' default help
def run_help_option(cmd)
@@ -72,12 +78,6 @@ def new_attributes(name, library)
super.update(option_command: true)
end
end
-
- def self.add_command_help
- Scientist.extend(ScientistExtension)
- Command.extend(CommandExtension)
- true # Ensure this method is only called once
- end
end
# Defines default commands that are available to executables i.e. Runner.start
Please sign in to comment.
Something went wrong with that request. Please try again.