raketary 0.1.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
- # frozen_string_literal: true
4
-
5
- #--
6
- # This file is part of Raketary.
7
- # Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
8
- #
9
- # Raketary is free software: you can redistribute it and/or modify
10
- # it under the terms of the GNU Lesser General Public License as published by
11
- # the Free Software Foundation, either version 3 of the License, or
12
- # (at your option) any later version.
13
- #
14
- # Raketary is distributed in the hope that it will be useful,
15
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- # GNU Lesser General Public License for more details.
18
- #
19
- # You should have received a copy of the GNU Lesser General Public License
20
- # along with Raketary. If not, see <https://www.gnu.org/licenses/>.
21
- #++
22
-
23
-
24
- require 'bundler/gem_tasks'
25
-
26
- require 'rake'
27
- require 'raketary/cmd'
28
- require 'raketeer/github_pkg_task'
29
-
30
-
31
- module Raketary
32
- ###
33
- # @author Jonathan Bradley Whited (@esotericpig)
34
- # @since 0.1.2
35
- ###
36
- class AppGitHubPkg < Cmd
37
- def initialize(*)
38
- super
39
-
40
- parse!() do |op|
41
- op.on('-u','--user [STR]','set the GitHub username')
42
- end
43
- end
44
-
45
- def run()
46
- super()
47
-
48
- ghpkg_task = Raketeer::GitHubPkgTask.new() do |task|
49
- task.username = app.options[:user] if app.options[:user]
50
- end
51
-
52
- ghpkg_task = Rake::Task[ghpkg_task.name]
53
-
54
- ghpkg_task.reenable()
55
- ghpkg_task.invoke()
56
-
57
- app.ran_cmd = true
58
- end
59
- end
60
- end
@@ -1,54 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
- # frozen_string_literal: true
4
-
5
- #--
6
- # This file is part of Raketary.
7
- # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
8
- #
9
- # Raketary is free software: you can redistribute it and/or modify
10
- # it under the terms of the GNU Lesser General Public License as published by
11
- # the Free Software Foundation, either version 3 of the License, or
12
- # (at your option) any later version.
13
- #
14
- # Raketary is distributed in the hope that it will be useful,
15
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- # GNU Lesser General Public License for more details.
18
- #
19
- # You should have received a copy of the GNU Lesser General Public License
20
- # along with Raketary. If not, see <https://www.gnu.org/licenses/>.
21
- #++
22
-
23
-
24
- require 'rake'
25
- require 'raketary/cmd'
26
- require 'raketeer/irb_task'
27
-
28
- module Raketary
29
- ###
30
- # @author Jonathan Bradley Whited (@esotericpig)
31
- # @since 0.1.0
32
- ###
33
- class AppIRB < Cmd
34
- def initialize(*)
35
- super
36
-
37
- parse!() do |op|
38
- #op.separator op.summary_indent
39
- end
40
- end
41
-
42
- def run()
43
- super()
44
-
45
- irb_task = Raketeer::IRBTask.new()
46
- irb_task = Rake::Task[irb_task.name]
47
-
48
- irb_task.reenable()
49
- irb_task.invoke()
50
-
51
- app.ran_cmd = true
52
- end
53
- end
54
- end
@@ -1,58 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
- # frozen_string_literal: true
4
-
5
- #--
6
- # This file is part of Raketary.
7
- # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
8
- #
9
- # Raketary is free software: you can redistribute it and/or modify
10
- # it under the terms of the GNU Lesser General Public License as published by
11
- # the Free Software Foundation, either version 3 of the License, or
12
- # (at your option) any later version.
13
- #
14
- # Raketary is distributed in the hope that it will be useful,
15
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- # GNU Lesser General Public License for more details.
18
- #
19
- # You should have received a copy of the GNU Lesser General Public License
20
- # along with Raketary. If not, see <https://www.gnu.org/licenses/>.
21
- #++
22
-
23
-
24
- require 'rake'
25
- require 'raketary/cmd'
26
- require 'raketeer/run_task'
27
-
28
- module Raketary
29
- ###
30
- # @author Jonathan Bradley Whited (@esotericpig)
31
- # @since 0.1.0
32
- ###
33
- class AppRun < Cmd
34
- def initialize(*)
35
- super
36
-
37
- parse!() do |op|
38
- #op.separator op.summary_indent
39
- end
40
- end
41
-
42
- def run()
43
- super()
44
-
45
- run_task = Raketeer::RunTask.new()
46
-
47
- ARGV << run_task.name.to_s()
48
- ARGV.push(*@leftover_args)
49
-
50
- run_task = Rake::Task[run_task.name]
51
-
52
- run_task.reenable()
53
- run_task.invoke()
54
-
55
- app.ran_cmd = true
56
- end
57
- end
58
- end