File tree 7 files changed +22
-119
lines changed
7 files changed +22
-119
lines changed Original file line number Diff line number Diff line change 2
2
# frozen_string_literal: true
3
3
4
4
require 'boxing'
5
+ require 'rake'
5
6
6
- Boxing ::Command . start ( ARGV )
7
+ Rake . application = Boxing ::Command . new
8
+ Rake . application . run
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
- require 'thor '
3
+ require 'rake '
4
4
5
5
module Boxing
6
6
# The Main Command
7
7
#
8
8
# @since 0.1.0
9
- class Command < Thor
10
- # :nodoc:
11
- def self . exit_on_failure?
12
- true
9
+ class Command < Rake ::Application
10
+ # @since 0.11.0
11
+ TASK_ROOT = File . expand_path ( './tasks' , __dir__ )
12
+
13
+ # @see Rake::Application#run
14
+ def run ( argv = ARGV )
15
+ standard_exception_handling do
16
+ init ( 'boxing' , argv )
17
+ load_rakefile
18
+ top_level
19
+ end
13
20
end
14
21
15
- require_relative 'commands/base'
16
- require_relative 'commands/generate'
17
- require_relative 'commands/compose'
18
- require_relative 'commands/update'
22
+ # @see Rake::Application#load_rakefile
23
+ def load_rakefile
24
+ glob ( "#{ TASK_ROOT } /**/*.rake" ) . each { |task | add_import task }
25
+ load_imports
26
+ end
19
27
end
20
28
end
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ require 'tempfile'
4
+
3
5
module Boxing
4
6
# Generate file from template
5
7
#
You can’t perform that action at this time.
0 commit comments