Skip to content

Commit

Permalink
Extend CommandOutput module at module definition scope
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed Jul 29, 2024
1 parent 40132e9 commit 893aeac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/ocran
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ module Ocran

def self.warning? = @option.warning?

load File.expand_path("../lib/ocran/command_output.rb", __dir__)
extend CommandOutput

def Ocran.fatal_error(s)
error s
exit 1
Expand All @@ -33,9 +36,6 @@ module Ocran
def self.run_script? = @option.run_script?

def Ocran.init
load File.expand_path("../lib/ocran/command_output.rb", __dir__)
extend CommandOutput

load File.expand_path("../lib/ocran/runtime_environment.rb", __dir__)
@pre_env = RuntimeEnvironment.save

Expand Down

0 comments on commit 893aeac

Please sign in to comment.