rbcli 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +55 -51
- data/README.md +2 -2
- data/docs/404.html +8 -8
- data/docs/advanced/automatic_updates/index.html +28 -28
- data/docs/advanced/command_types/index.html +35 -35
- data/docs/advanced/distributed_state_locking/index.html +28 -28
- data/docs/advanced/hooks/index.html +30 -30
- data/docs/advanced/index.html +26 -26
- data/docs/advanced/index.xml +2 -6
- data/docs/advanced/interactive_commands/index.html +29 -29
- data/docs/advanced/logging/index.html +32 -32
- data/docs/advanced/remote_execution/index.html +31 -31
- data/docs/advanced/state_storage/index.html +30 -30
- data/docs/advanced/user_config_files/index.html +28 -28
- data/docs/categories/index.html +26 -26
- data/docs/categories/index.xml +2 -6
- data/docs/development/changelog/index.html +53 -40
- data/docs/development/code_of_conduct/index.html +27 -27
- data/docs/development/contributing/index.html +32 -32
- data/docs/development/index.html +26 -26
- data/docs/development/index.xml +3 -7
- data/docs/development/license/index.html +26 -26
- data/docs/index.html +26 -26
- data/docs/index.json +3 -3
- data/docs/index.xml +3 -7
- data/docs/quick_reference/index.html +39 -39
- data/docs/quick_reference/index.xml +2 -6
- data/docs/sitemap.xml +26 -78
- data/docs/tags/index.html +26 -26
- data/docs/tags/index.xml +2 -6
- data/docs/tutorial/10-getting_started/index.html +29 -29
- data/docs/tutorial/20-project_layout/index.html +29 -29
- data/docs/tutorial/30-your_first_command/index.html +32 -32
- data/docs/tutorial/40-options_parameters_and_arguments/index.html +41 -41
- data/docs/tutorial/50-publishing/index.html +27 -27
- data/docs/tutorial/index.html +26 -26
- data/docs/tutorial/index.xml +2 -6
- data/docs/whoami/index.html +26 -26
- data/docs/whoami/index.xml +2 -6
- data/docs-src/content/development/changelog.md +9 -0
- data/docs-src/content/quick_reference/_index.md +2 -2
- data/exe/rbcli +1 -1
- data/lib/rbcli/configuration/configurate.rb +1 -1
- data/lib/rbcli/engine/command.rb +2 -1
- data/lib/rbcli/engine/load_project.rb +1 -1
- data/lib/rbcli/features/userconfig.rb +3 -3
- data/lib/rbcli/state_storage/localstate.rb +1 -1
- data/lib/rbcli/version.rb +1 -1
- data/lib/rbcli-tool/generators.rb +3 -3
- data/lib/rbcli-tool/mdless_fix.rb +1 -1
- data/lib/rbcli-tool/project.rb +3 -3
- data/lib/rbcli-tool/util.rb +2 -2
- data/rbcli.gemspec +11 -13
- data/skeletons/project/application/commands/scripts/script.sh +6 -1
- data/skeletons/project/untitled.gemspec +3 -3
- metadata +32 -32
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<meta name="generator" content="Hugo 0.
|
6
|
+
<meta name="generator" content="Hugo 0.88.1" />
|
7
7
|
<meta name="description" content="">
|
8
8
|
|
9
9
|
|
@@ -12,21 +12,21 @@
|
|
12
12
|
<title>Publishing Your Application :: RBCli Documentation</title>
|
13
13
|
|
14
14
|
|
15
|
-
<link href="/rbcli/css/nucleus.css?
|
16
|
-
<link href="/rbcli/css/fontawesome-all.min.css?
|
17
|
-
<link href="/rbcli/css/hybrid.css?
|
18
|
-
<link href="/rbcli/css/featherlight.min.css?
|
19
|
-
<link href="/rbcli/css/perfect-scrollbar.min.css?
|
20
|
-
<link href="/rbcli/css/auto-complete.css?
|
21
|
-
<link href="/rbcli/css/atom-one-dark-reasonable.css?
|
22
|
-
<link href="/rbcli/css/theme.css?
|
23
|
-
<link href="/rbcli/css/hugo-theme.css?
|
15
|
+
<link href="/rbcli/css/nucleus.css?1634703589" rel="stylesheet">
|
16
|
+
<link href="/rbcli/css/fontawesome-all.min.css?1634703589" rel="stylesheet">
|
17
|
+
<link href="/rbcli/css/hybrid.css?1634703589" rel="stylesheet">
|
18
|
+
<link href="/rbcli/css/featherlight.min.css?1634703589" rel="stylesheet">
|
19
|
+
<link href="/rbcli/css/perfect-scrollbar.min.css?1634703589" rel="stylesheet">
|
20
|
+
<link href="/rbcli/css/auto-complete.css?1634703589" rel="stylesheet">
|
21
|
+
<link href="/rbcli/css/atom-one-dark-reasonable.css?1634703589" rel="stylesheet">
|
22
|
+
<link href="/rbcli/css/theme.css?1634703589" rel="stylesheet">
|
23
|
+
<link href="/rbcli/css/hugo-theme.css?1634703589" rel="stylesheet">
|
24
24
|
|
25
|
-
<link href="/rbcli/css/theme-blue.css?
|
25
|
+
<link href="/rbcli/css/theme-blue.css?1634703589" rel="stylesheet">
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
<script src="/rbcli/js/jquery-3.3.1.min.js?
|
29
|
+
<script src="/rbcli/js/jquery-3.3.1.min.js?1634703589"></script>
|
30
30
|
|
31
31
|
<style>
|
32
32
|
:root #header + #content > #left > #rlblock_left{
|
@@ -55,14 +55,14 @@
|
|
55
55
|
<span data-search-clear=""><i class="fas fa-times"></i></span>
|
56
56
|
</div>
|
57
57
|
|
58
|
-
<script type="text/javascript" src="/rbcli/js/lunr.min.js?
|
59
|
-
<script type="text/javascript" src="/rbcli/js/auto-complete.js?
|
58
|
+
<script type="text/javascript" src="/rbcli/js/lunr.min.js?1634703589"></script>
|
59
|
+
<script type="text/javascript" src="/rbcli/js/auto-complete.js?1634703589"></script>
|
60
60
|
<script type="text/javascript">
|
61
61
|
|
62
62
|
var baseurl = "https:\/\/akhoury6.github.io\/rbcli\/";
|
63
63
|
|
64
64
|
</script>
|
65
|
-
<script type="text/javascript" src="/rbcli/js/search.js?
|
65
|
+
<script type="text/javascript" src="/rbcli/js/search.js?1634703589"></script>
|
66
66
|
|
67
67
|
|
68
68
|
</div>
|
@@ -714,7 +714,7 @@
|
|
714
714
|
<p>Then, for every release, you’ll need to update the version number in <code>config/version.rb</code>. This number is automatically used by the <code>gemspec</code> when versioning the gem in the system, and by RBCli when displaying help to the user and checking for automatic updates if you enable that feature (see <a href="/rbcli/advanced/automatic_updates/">Automatic Updates</a> for more information).</p>
|
715
715
|
<h2 id="source-control-distribution">Source Control Distribution</h2>
|
716
716
|
<p>With Source Control distribution your users will be cloning the source code directly from your repository, and building and installing the gem locally. Thankfully, the process is pretty simple:</p>
|
717
|
-
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">git clone <your_repo_here>
|
717
|
+
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">git clone <your_repo_here>
|
718
718
|
gem build mytool.gemspec
|
719
719
|
gem install mytool-*.gem
|
720
720
|
</code></pre></div><p>Note that he README’s placeholder text has these commands already listed for your users, which you can leave as instructions.</p>
|
@@ -1164,19 +1164,19 @@ gem install mytool-*.gem
|
|
1164
1164
|
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
1165
1165
|
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
1166
1166
|
</div>
|
1167
|
-
<script src="/rbcli/js/clipboard.min.js?
|
1168
|
-
<script src="/rbcli/js/perfect-scrollbar.min.js?
|
1169
|
-
<script src="/rbcli/js/perfect-scrollbar.jquery.min.js?
|
1170
|
-
<script src="/rbcli/js/jquery.sticky.js?
|
1171
|
-
<script src="/rbcli/js/featherlight.min.js?
|
1172
|
-
<script src="/rbcli/js/highlight.pack.js?
|
1167
|
+
<script src="/rbcli/js/clipboard.min.js?1634703589"></script>
|
1168
|
+
<script src="/rbcli/js/perfect-scrollbar.min.js?1634703589"></script>
|
1169
|
+
<script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1634703589"></script>
|
1170
|
+
<script src="/rbcli/js/jquery.sticky.js?1634703589"></script>
|
1171
|
+
<script src="/rbcli/js/featherlight.min.js?1634703589"></script>
|
1172
|
+
<script src="/rbcli/js/highlight.pack.js?1634703589"></script>
|
1173
1173
|
<script>hljs.initHighlightingOnLoad();</script>
|
1174
|
-
<script src="/rbcli/js/modernizr.custom-3.6.0.js?
|
1175
|
-
<script src="/rbcli/js/learn.js?
|
1176
|
-
<script src="/rbcli/js/hugo-learn.js?
|
1174
|
+
<script src="/rbcli/js/modernizr.custom-3.6.0.js?1634703589"></script>
|
1175
|
+
<script src="/rbcli/js/learn.js?1634703589"></script>
|
1176
|
+
<script src="/rbcli/js/hugo-learn.js?1634703589"></script>
|
1177
1177
|
|
1178
|
-
<link href="/rbcli/mermaid/mermaid.css?
|
1179
|
-
<script src="/rbcli/mermaid/mermaid.js?
|
1178
|
+
<link href="/rbcli/mermaid/mermaid.css?1634703589" rel="stylesheet" />
|
1179
|
+
<script src="/rbcli/mermaid/mermaid.js?1634703589"></script>
|
1180
1180
|
<script>
|
1181
1181
|
mermaid.initialize({ startOnLoad: true });
|
1182
1182
|
</script>
|
data/docs/tutorial/index.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<meta name="generator" content="Hugo 0.
|
6
|
+
<meta name="generator" content="Hugo 0.88.1" />
|
7
7
|
<meta name="description" content="">
|
8
8
|
|
9
9
|
|
@@ -12,21 +12,21 @@
|
|
12
12
|
<title>Tutorial :: RBCli Documentation</title>
|
13
13
|
|
14
14
|
|
15
|
-
<link href="/rbcli/css/nucleus.css?
|
16
|
-
<link href="/rbcli/css/fontawesome-all.min.css?
|
17
|
-
<link href="/rbcli/css/hybrid.css?
|
18
|
-
<link href="/rbcli/css/featherlight.min.css?
|
19
|
-
<link href="/rbcli/css/perfect-scrollbar.min.css?
|
20
|
-
<link href="/rbcli/css/auto-complete.css?
|
21
|
-
<link href="/rbcli/css/atom-one-dark-reasonable.css?
|
22
|
-
<link href="/rbcli/css/theme.css?
|
23
|
-
<link href="/rbcli/css/hugo-theme.css?
|
15
|
+
<link href="/rbcli/css/nucleus.css?1634703589" rel="stylesheet">
|
16
|
+
<link href="/rbcli/css/fontawesome-all.min.css?1634703589" rel="stylesheet">
|
17
|
+
<link href="/rbcli/css/hybrid.css?1634703589" rel="stylesheet">
|
18
|
+
<link href="/rbcli/css/featherlight.min.css?1634703589" rel="stylesheet">
|
19
|
+
<link href="/rbcli/css/perfect-scrollbar.min.css?1634703589" rel="stylesheet">
|
20
|
+
<link href="/rbcli/css/auto-complete.css?1634703589" rel="stylesheet">
|
21
|
+
<link href="/rbcli/css/atom-one-dark-reasonable.css?1634703589" rel="stylesheet">
|
22
|
+
<link href="/rbcli/css/theme.css?1634703589" rel="stylesheet">
|
23
|
+
<link href="/rbcli/css/hugo-theme.css?1634703589" rel="stylesheet">
|
24
24
|
|
25
|
-
<link href="/rbcli/css/theme-blue.css?
|
25
|
+
<link href="/rbcli/css/theme-blue.css?1634703589" rel="stylesheet">
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
<script src="/rbcli/js/jquery-3.3.1.min.js?
|
29
|
+
<script src="/rbcli/js/jquery-3.3.1.min.js?1634703589"></script>
|
30
30
|
|
31
31
|
<style>
|
32
32
|
:root #header + #content > #left > #rlblock_left{
|
@@ -55,14 +55,14 @@
|
|
55
55
|
<span data-search-clear=""><i class="fas fa-times"></i></span>
|
56
56
|
</div>
|
57
57
|
|
58
|
-
<script type="text/javascript" src="/rbcli/js/lunr.min.js?
|
59
|
-
<script type="text/javascript" src="/rbcli/js/auto-complete.js?
|
58
|
+
<script type="text/javascript" src="/rbcli/js/lunr.min.js?1634703589"></script>
|
59
|
+
<script type="text/javascript" src="/rbcli/js/auto-complete.js?1634703589"></script>
|
60
60
|
<script type="text/javascript">
|
61
61
|
|
62
62
|
var baseurl = "https:\/\/akhoury6.github.io\/rbcli\/";
|
63
63
|
|
64
64
|
</script>
|
65
|
-
<script type="text/javascript" src="/rbcli/js/search.js?
|
65
|
+
<script type="text/javascript" src="/rbcli/js/search.js?1634703589"></script>
|
66
66
|
|
67
67
|
|
68
68
|
</div>
|
@@ -1118,19 +1118,19 @@
|
|
1118
1118
|
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
1119
1119
|
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
1120
1120
|
</div>
|
1121
|
-
<script src="/rbcli/js/clipboard.min.js?
|
1122
|
-
<script src="/rbcli/js/perfect-scrollbar.min.js?
|
1123
|
-
<script src="/rbcli/js/perfect-scrollbar.jquery.min.js?
|
1124
|
-
<script src="/rbcli/js/jquery.sticky.js?
|
1125
|
-
<script src="/rbcli/js/featherlight.min.js?
|
1126
|
-
<script src="/rbcli/js/highlight.pack.js?
|
1121
|
+
<script src="/rbcli/js/clipboard.min.js?1634703589"></script>
|
1122
|
+
<script src="/rbcli/js/perfect-scrollbar.min.js?1634703589"></script>
|
1123
|
+
<script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1634703589"></script>
|
1124
|
+
<script src="/rbcli/js/jquery.sticky.js?1634703589"></script>
|
1125
|
+
<script src="/rbcli/js/featherlight.min.js?1634703589"></script>
|
1126
|
+
<script src="/rbcli/js/highlight.pack.js?1634703589"></script>
|
1127
1127
|
<script>hljs.initHighlightingOnLoad();</script>
|
1128
|
-
<script src="/rbcli/js/modernizr.custom-3.6.0.js?
|
1129
|
-
<script src="/rbcli/js/learn.js?
|
1130
|
-
<script src="/rbcli/js/hugo-learn.js?
|
1128
|
+
<script src="/rbcli/js/modernizr.custom-3.6.0.js?1634703589"></script>
|
1129
|
+
<script src="/rbcli/js/learn.js?1634703589"></script>
|
1130
|
+
<script src="/rbcli/js/hugo-learn.js?1634703589"></script>
|
1131
1131
|
|
1132
|
-
<link href="/rbcli/mermaid/mermaid.css?
|
1133
|
-
<script src="/rbcli/mermaid/mermaid.js?
|
1132
|
+
<link href="/rbcli/mermaid/mermaid.css?1634703589" rel="stylesheet" />
|
1133
|
+
<script src="/rbcli/mermaid/mermaid.js?1634703589"></script>
|
1134
1134
|
<script>
|
1135
1135
|
mermaid.initialize({ startOnLoad: true });
|
1136
1136
|
</script>
|
data/docs/tutorial/index.xml
CHANGED
@@ -6,11 +6,7 @@
|
|
6
6
|
<description>Recent content in Tutorial on RBCli Documentation</description>
|
7
7
|
<generator>Hugo -- gohugo.io</generator>
|
8
8
|
<language>en-us</language>
|
9
|
-
<lastBuildDate>Thu, 20 Jun 2019 15:08:08 -0400</lastBuildDate
|
10
|
-
|
11
|
-
<atom:link href="https://akhoury6.github.io/rbcli/tutorial/index.xml" rel="self" type="application/rss+xml" />
|
12
|
-
|
13
|
-
|
9
|
+
<lastBuildDate>Thu, 20 Jun 2019 15:08:08 -0400</lastBuildDate><atom:link href="https://akhoury6.github.io/rbcli/tutorial/index.xml" rel="self" type="application/rss+xml" />
|
14
10
|
<item>
|
15
11
|
<title>Getting Started</title>
|
16
12
|
<link>https://akhoury6.github.io/rbcli/tutorial/10-getting_started/</link>
|
@@ -68,4 +64,4 @@ In both files the items that need changing are pretty obvious &ndash; you&am
|
|
68
64
|
</item>
|
69
65
|
|
70
66
|
</channel>
|
71
|
-
</rss>
|
67
|
+
</rss>
|
data/docs/whoami/index.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<meta name="generator" content="Hugo 0.
|
6
|
+
<meta name="generator" content="Hugo 0.88.1" />
|
7
7
|
<meta name="description" content="">
|
8
8
|
|
9
9
|
|
@@ -12,21 +12,21 @@
|
|
12
12
|
<title>My Letter To You :: RBCli Documentation</title>
|
13
13
|
|
14
14
|
|
15
|
-
<link href="/rbcli/css/nucleus.css?
|
16
|
-
<link href="/rbcli/css/fontawesome-all.min.css?
|
17
|
-
<link href="/rbcli/css/hybrid.css?
|
18
|
-
<link href="/rbcli/css/featherlight.min.css?
|
19
|
-
<link href="/rbcli/css/perfect-scrollbar.min.css?
|
20
|
-
<link href="/rbcli/css/auto-complete.css?
|
21
|
-
<link href="/rbcli/css/atom-one-dark-reasonable.css?
|
22
|
-
<link href="/rbcli/css/theme.css?
|
23
|
-
<link href="/rbcli/css/hugo-theme.css?
|
15
|
+
<link href="/rbcli/css/nucleus.css?1634703589" rel="stylesheet">
|
16
|
+
<link href="/rbcli/css/fontawesome-all.min.css?1634703589" rel="stylesheet">
|
17
|
+
<link href="/rbcli/css/hybrid.css?1634703589" rel="stylesheet">
|
18
|
+
<link href="/rbcli/css/featherlight.min.css?1634703589" rel="stylesheet">
|
19
|
+
<link href="/rbcli/css/perfect-scrollbar.min.css?1634703589" rel="stylesheet">
|
20
|
+
<link href="/rbcli/css/auto-complete.css?1634703589" rel="stylesheet">
|
21
|
+
<link href="/rbcli/css/atom-one-dark-reasonable.css?1634703589" rel="stylesheet">
|
22
|
+
<link href="/rbcli/css/theme.css?1634703589" rel="stylesheet">
|
23
|
+
<link href="/rbcli/css/hugo-theme.css?1634703589" rel="stylesheet">
|
24
24
|
|
25
|
-
<link href="/rbcli/css/theme-blue.css?
|
25
|
+
<link href="/rbcli/css/theme-blue.css?1634703589" rel="stylesheet">
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
<script src="/rbcli/js/jquery-3.3.1.min.js?
|
29
|
+
<script src="/rbcli/js/jquery-3.3.1.min.js?1634703589"></script>
|
30
30
|
|
31
31
|
<style>
|
32
32
|
:root #header + #content > #left > #rlblock_left{
|
@@ -55,14 +55,14 @@
|
|
55
55
|
<span data-search-clear=""><i class="fas fa-times"></i></span>
|
56
56
|
</div>
|
57
57
|
|
58
|
-
<script type="text/javascript" src="/rbcli/js/lunr.min.js?
|
59
|
-
<script type="text/javascript" src="/rbcli/js/auto-complete.js?
|
58
|
+
<script type="text/javascript" src="/rbcli/js/lunr.min.js?1634703589"></script>
|
59
|
+
<script type="text/javascript" src="/rbcli/js/auto-complete.js?1634703589"></script>
|
60
60
|
<script type="text/javascript">
|
61
61
|
|
62
62
|
var baseurl = "https:\/\/akhoury6.github.io\/rbcli\/";
|
63
63
|
|
64
64
|
</script>
|
65
|
-
<script type="text/javascript" src="/rbcli/js/search.js?
|
65
|
+
<script type="text/javascript" src="/rbcli/js/search.js?1634703589"></script>
|
66
66
|
|
67
67
|
|
68
68
|
</div>
|
@@ -1133,19 +1133,19 @@
|
|
1133
1133
|
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
|
1134
1134
|
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
|
1135
1135
|
</div>
|
1136
|
-
<script src="/rbcli/js/clipboard.min.js?
|
1137
|
-
<script src="/rbcli/js/perfect-scrollbar.min.js?
|
1138
|
-
<script src="/rbcli/js/perfect-scrollbar.jquery.min.js?
|
1139
|
-
<script src="/rbcli/js/jquery.sticky.js?
|
1140
|
-
<script src="/rbcli/js/featherlight.min.js?
|
1141
|
-
<script src="/rbcli/js/highlight.pack.js?
|
1136
|
+
<script src="/rbcli/js/clipboard.min.js?1634703589"></script>
|
1137
|
+
<script src="/rbcli/js/perfect-scrollbar.min.js?1634703589"></script>
|
1138
|
+
<script src="/rbcli/js/perfect-scrollbar.jquery.min.js?1634703589"></script>
|
1139
|
+
<script src="/rbcli/js/jquery.sticky.js?1634703589"></script>
|
1140
|
+
<script src="/rbcli/js/featherlight.min.js?1634703589"></script>
|
1141
|
+
<script src="/rbcli/js/highlight.pack.js?1634703589"></script>
|
1142
1142
|
<script>hljs.initHighlightingOnLoad();</script>
|
1143
|
-
<script src="/rbcli/js/modernizr.custom-3.6.0.js?
|
1144
|
-
<script src="/rbcli/js/learn.js?
|
1145
|
-
<script src="/rbcli/js/hugo-learn.js?
|
1143
|
+
<script src="/rbcli/js/modernizr.custom-3.6.0.js?1634703589"></script>
|
1144
|
+
<script src="/rbcli/js/learn.js?1634703589"></script>
|
1145
|
+
<script src="/rbcli/js/hugo-learn.js?1634703589"></script>
|
1146
1146
|
|
1147
|
-
<link href="/rbcli/mermaid/mermaid.css?
|
1148
|
-
<script src="/rbcli/mermaid/mermaid.js?
|
1147
|
+
<link href="/rbcli/mermaid/mermaid.css?1634703589" rel="stylesheet" />
|
1148
|
+
<script src="/rbcli/mermaid/mermaid.js?1634703589"></script>
|
1149
1149
|
<script>
|
1150
1150
|
mermaid.initialize({ startOnLoad: true });
|
1151
1151
|
</script>
|
data/docs/whoami/index.xml
CHANGED
@@ -6,10 +6,6 @@
|
|
6
6
|
<description>Recent content in My Letter To You on RBCli Documentation</description>
|
7
7
|
<generator>Hugo -- gohugo.io</generator>
|
8
8
|
<language>en-us</language>
|
9
|
-
<lastBuildDate>Thu, 20 Jun 2019 15:46:52 -0400</lastBuildDate
|
10
|
-
|
11
|
-
<atom:link href="https://akhoury6.github.io/rbcli/whoami/index.xml" rel="self" type="application/rss+xml" />
|
12
|
-
|
13
|
-
|
9
|
+
<lastBuildDate>Thu, 20 Jun 2019 15:46:52 -0400</lastBuildDate><atom:link href="https://akhoury6.github.io/rbcli/whoami/index.xml" rel="self" type="application/rss+xml" />
|
14
10
|
</channel>
|
15
|
-
</rss>
|
11
|
+
</rss>
|
@@ -6,6 +6,15 @@ weight: 100
|
|
6
6
|
---
|
7
7
|
|
8
8
|
|
9
|
+
## 0.3.1 (October 19, 2021)
|
10
|
+
|
11
|
+
### Bugfixes
|
12
|
+
|
13
|
+
* Fixed prompt for option value to ignore nil defaults instead of displaying an empty string
|
14
|
+
* Skeleton script command `script.sh` updated to function correctly when development mode is enabled
|
15
|
+
* Updated Github Pages links to point to `github.io` instead of `github.com` which are being deprecated
|
16
|
+
* Updated dependencies, closing the security hole of the gem `addressable <= 1.7.0`
|
17
|
+
|
9
18
|
## 0.3 (July 31, 2020)
|
10
19
|
|
11
20
|
### Improvements
|
@@ -173,8 +173,8 @@ The gem is available as open source under the terms of the [GPLv3][license_text]
|
|
173
173
|
[You can find the Official Documentation for RBCli Here.][documentation_home]
|
174
174
|
|
175
175
|
|
176
|
-
[documentation_home]: https://akhoury6.github.
|
177
|
-
[documentation_development]: https://akhoury6.github.
|
176
|
+
[documentation_home]: https://akhoury6.github.io/rbcli
|
177
|
+
[documentation_development]: https://akhoury6.github.io/rbcli/development/contributing/
|
178
178
|
[documentation_whoami]: https://akhoury6.github.io/rbcli/whoami/
|
179
179
|
[license_text]: https://github.com/akhoury6/rbcli/blob/master/LICENSE.txt
|
180
180
|
[changelog]: https://github.com/akhoury6/rbcli/blob/master/CHANGELOG.md
|
data/exe/rbcli
CHANGED
@@ -96,7 +96,7 @@ EOF
|
|
96
96
|
|
97
97
|
proj = RBCliTool::Project.new(dest, template_vars)
|
98
98
|
|
99
|
-
# if proj.
|
99
|
+
# if proj.exist?
|
100
100
|
# RBCliTool.continue_confirmation "The project or file #{params[:name]} already exists; contents will be overwritten."
|
101
101
|
# FileUtils.rm_rf dest
|
102
102
|
# end
|
@@ -30,7 +30,7 @@ module Rbcli::Configurate
|
|
30
30
|
##
|
31
31
|
def self.method_missing(method, *args, &block)
|
32
32
|
filename = "#{File.dirname(__FILE__)}/configurate_blocks/#{method.to_s.downcase}.rb"
|
33
|
-
if File.
|
33
|
+
if File.exist? filename
|
34
34
|
require filename
|
35
35
|
self.send method, *args, &block
|
36
36
|
else
|
data/lib/rbcli/engine/command.rb
CHANGED
@@ -181,7 +181,8 @@ Command-specific Parameters:
|
|
181
181
|
end
|
182
182
|
end
|
183
183
|
elsif data[:type] == :string
|
184
|
-
print data[:prompt]
|
184
|
+
print data[:prompt]
|
185
|
+
print " (default: \"#{data[:default]}\"): " unless data[:default].nil?
|
185
186
|
answer = gets.chomp
|
186
187
|
answer = data[:default] if answer.empty?
|
187
188
|
optx[name] = answer
|
@@ -98,7 +98,7 @@ module Rbcli::Config
|
|
98
98
|
|
99
99
|
def self.add_defaults filename=nil, text: nil
|
100
100
|
filename = File.expand_path filename
|
101
|
-
return unless filename and File.
|
101
|
+
return unless filename and File.exist? filename
|
102
102
|
@config_text ||= ''
|
103
103
|
@config_text += "\n" unless @config_text.empty?
|
104
104
|
File.readlines(filename).each do |line|
|
@@ -107,7 +107,7 @@ module Rbcli::Config
|
|
107
107
|
else
|
108
108
|
@config_text << line unless @config_text.include? line
|
109
109
|
end
|
110
|
-
end if filename and File.
|
110
|
+
end if filename and File.exist? filename
|
111
111
|
@config_text << "\n\n" << text if text
|
112
112
|
|
113
113
|
@config_defaults ||= {}
|
@@ -116,7 +116,7 @@ module Rbcli::Config
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def self.load
|
119
|
-
if (! @config_file.nil?) and File.
|
119
|
+
if (! @config_file.nil?) and File.exist? @config_file
|
120
120
|
@config = YAML.safe_load(File.read(@config_file), [], [], true).deep_symbolize!
|
121
121
|
@config.deep_merge! @config_defaults if @merge_defaults
|
122
122
|
elsif @userfile_required
|
data/lib/rbcli/version.rb
CHANGED
@@ -42,7 +42,7 @@ module RBCliTool
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def run
|
45
|
-
if File.
|
45
|
+
if File.exist? @dest
|
46
46
|
RBCliTool.continue_confirmation "The command #{@template_vars[:name]} already exists; contents will be overwritten."
|
47
47
|
FileUtils.rm_rf @dest
|
48
48
|
end
|
@@ -70,7 +70,7 @@ module RBCliTool
|
|
70
70
|
confirmed = false
|
71
71
|
@filepaths.each do |file|
|
72
72
|
next if file[:dest].end_with? '.sh' and @template_vars[:no_script]
|
73
|
-
if File.
|
73
|
+
if File.exist? file[:dest]
|
74
74
|
RBCliTool.continue_confirmation "The script command #{@template_vars[:name]} already exists; contents will be overwritten." unless confirmed
|
75
75
|
confirmed = true
|
76
76
|
FileUtils.rm_rf file[:dest]
|
@@ -94,7 +94,7 @@ module RBCliTool
|
|
94
94
|
end
|
95
95
|
|
96
96
|
def run
|
97
|
-
if File.
|
97
|
+
if File.exist? @dest
|
98
98
|
RBCliTool.continue_confirmation "The #{@typename} hook already exists; contents will be overwritten."
|
99
99
|
FileUtils.rm_rf @dest
|
100
100
|
end
|
@@ -378,7 +378,7 @@ module CLIMarkdown
|
|
378
378
|
base = File.expand_path(File.dirname(@file))
|
379
379
|
img_path = File.join(base,img_path)
|
380
380
|
end
|
381
|
-
if File.
|
381
|
+
if File.exist?(img_path)
|
382
382
|
pre = match[2].size > 0 ? " #{c([:d,:blue])}[#{match[2].strip}]\n" : ''
|
383
383
|
post = tail.size > 0 ? "\n #{c([:b,:blue])}-- #{tail} --" : ''
|
384
384
|
img = %x{imgcat "#{img_path}"}
|
data/lib/rbcli-tool/project.rb
CHANGED
@@ -91,7 +91,7 @@ module RBCliTool
|
|
91
91
|
RBCliTool.cp_file @micropath, "#{@dest}/#{@template_vars[:cmdname]}", @template_vars
|
92
92
|
end
|
93
93
|
|
94
|
-
def
|
94
|
+
def exist?
|
95
95
|
project_exists?
|
96
96
|
end
|
97
97
|
|
@@ -99,7 +99,7 @@ module RBCliTool
|
|
99
99
|
# We look for the .rbcli file in the current tree and return the root path
|
100
100
|
searchpath = path
|
101
101
|
while !searchpath.empty?
|
102
|
-
return searchpath if File.directory? searchpath and File.
|
102
|
+
return searchpath if File.directory? searchpath and File.exist? "#{searchpath}/.rbcli"
|
103
103
|
spath = searchpath.split('/')
|
104
104
|
searchpath = (spath.length == 2) ? '/' : spath[0..-2].join('/')
|
105
105
|
end
|
@@ -110,7 +110,7 @@ module RBCliTool
|
|
110
110
|
|
111
111
|
def project_exists?
|
112
112
|
# If the specified file already exists...
|
113
|
-
#return true if File.
|
113
|
+
#return true if File.exist? @dest
|
114
114
|
|
115
115
|
# Or if the .rbcli file exists anywhere in the tree, we know that we are in a subdirectory of a project
|
116
116
|
Project::find_root(@dest)
|
data/lib/rbcli-tool/util.rb
CHANGED
@@ -34,7 +34,7 @@ module RBCliTool
|
|
34
34
|
|
35
35
|
def self.cp_file src, dest, template_vars = nil
|
36
36
|
dest = "#{dest}#{src.split('/')[-1]}" if dest.end_with? '/'
|
37
|
-
if File.
|
37
|
+
if File.exist? dest
|
38
38
|
puts "File #{dest} already exists. Please delete it and try again."
|
39
39
|
false
|
40
40
|
else
|
@@ -47,7 +47,7 @@ module RBCliTool
|
|
47
47
|
FileUtils.cp src, dest
|
48
48
|
end
|
49
49
|
|
50
|
-
FileUtils.rm_f "#{File.dirname(dest)}/.keep" if File.
|
50
|
+
FileUtils.rm_f "#{File.dirname(dest)}/.keep" if File.exist? "#{File.dirname(dest)}/.keep"
|
51
51
|
puts "Done!"
|
52
52
|
true
|
53
53
|
end
|
data/rbcli.gemspec
CHANGED
@@ -53,19 +53,17 @@ Gem::Specification.new do |spec|
|
|
53
53
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
54
54
|
spec.require_paths = ['lib']
|
55
55
|
|
56
|
-
spec.add_development_dependency 'bundler', '
|
57
|
-
spec.add_development_dependency 'rake', '
|
58
|
-
# spec.add_development_dependency 'rspec', '~> 3.8'
|
59
|
-
# spec.add_development_dependency 'minitest', '~> 5.0'
|
56
|
+
spec.add_development_dependency 'bundler', '>= 2'
|
57
|
+
spec.add_development_dependency 'rake', '>= 13'
|
60
58
|
|
61
|
-
spec.add_dependency 'colorize', '~>
|
62
|
-
spec.add_dependency 'deep_merge', '~> 1
|
63
|
-
spec.add_dependency 'aws-sdk-dynamodb', '~> 1
|
64
|
-
spec.add_dependency 'macaddr', '~> 1
|
65
|
-
spec.add_dependency 'rufus-scheduler', '~> 3
|
66
|
-
spec.add_dependency 'octokit', '~>
|
67
|
-
spec.add_dependency 'mdless', '~> 1
|
68
|
-
spec.add_dependency 'net-ssh', '~>
|
69
|
-
spec.add_dependency 'net-scp', '~>
|
59
|
+
spec.add_dependency 'colorize', '~> 1'
|
60
|
+
spec.add_dependency 'deep_merge', '~> 1'
|
61
|
+
spec.add_dependency 'aws-sdk-dynamodb', '~> 1'
|
62
|
+
spec.add_dependency 'macaddr', '~> 1'
|
63
|
+
spec.add_dependency 'rufus-scheduler', '~> 3'
|
64
|
+
spec.add_dependency 'octokit', '~> 7'
|
65
|
+
spec.add_dependency 'mdless', '~> 1'
|
66
|
+
spec.add_dependency 'net-ssh', '~> 7'
|
67
|
+
spec.add_dependency 'net-scp', '~> 4'
|
70
68
|
# spec.add_dependency 'trollop', '~> 2.1'
|
71
69
|
end
|
@@ -5,7 +5,12 @@
|
|
5
5
|
###
|
6
6
|
#
|
7
7
|
# You can access RBCli's variables via the `rbcli` command, which is imported by this line:
|
8
|
-
|
8
|
+
if [[ RBCLI_ENV -eq "development" ]]; then
|
9
|
+
__RBCLI_LIBSH_PATH="${RBCLI_DEVPATH}/../../lib-sh/lib-rbcli.sh"
|
10
|
+
else
|
11
|
+
__RBCLI_LIBSH_PATH=$(echo $(cd "$(dirname $(gem which rbcli))/../lib-sh" && pwd)/lib-rbcli.sh)
|
12
|
+
fi
|
13
|
+
source "${__RBCLI_LIBSH_PATH}"
|
9
14
|
#
|
10
15
|
# The `rbcli` function is actually a wrapper around `jq` (https://stedolan.github.io/jq/). It can automatically
|
11
16
|
# jq on users' machines if running Linux or OSX, and users have sudo access. If not, users will be prompted to install
|
@@ -32,9 +32,9 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ['application', 'config', 'default_user_configs', 'hooks', 'lib']
|
34
34
|
|
35
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
36
|
-
spec.add_development_dependency 'rake', '~>
|
37
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
35
|
+
spec.add_development_dependency 'bundler', '~> 2.2'
|
36
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
37
|
+
spec.add_development_dependency 'rspec', '~> 3.10'
|
38
38
|
|
39
39
|
spec.add_dependency 'rbcli', '>= <%= @vars[:rbcli_version] %>'
|
40
40
|
end
|