my_help 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardoc/checksums +4 -4
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile.lock +1 -1
- data/Rakefile +20 -1
- data/lib/my_help/cli.rb +1 -0
- data/lib/my_help/config.rb +1 -1
- data/lib/my_help/list.rb +5 -3
- data/lib/my_help/version.rb +1 -1
- data/lib/templates/example.org +3 -5
- metadata +2 -30
- data/doc/MyHelp/CLI.html +0 -749
- data/doc/MyHelp/Config.html +0 -693
- data/doc/MyHelp/Control.html +0 -1127
- data/doc/MyHelp/Error.html +0 -124
- data/doc/MyHelp/GetConfig.html +0 -196
- data/doc/MyHelp/Git.html +0 -291
- data/doc/MyHelp/Init.html +0 -449
- data/doc/MyHelp/List.html +0 -577
- data/doc/MyHelp/Md2Hash.html +0 -632
- data/doc/MyHelp/Modify.html +0 -393
- data/doc/MyHelp/Org2Hash.html +0 -542
- data/doc/MyHelp.html +0 -135
- data/doc/Org2Yaml.html +0 -497
- data/doc/OrgToYaml.html +0 -497
- data/doc/_index.html +0 -230
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -497
- data/doc/file.README.html +0 -181
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -181
- data/doc/js/app.js +0 -314
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -451
- data/doc/top-level-namespace.html +0 -112
data/doc/MyHelp/Error.html
DELETED
@@ -1,124 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Exception: MyHelp::Error
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.28
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "MyHelp::Error";
|
19
|
-
relpath = '../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../_index.html">Index (E)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../MyHelp.html" title="MyHelp (module)">MyHelp</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">Error</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Exception: MyHelp::Error
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName">StandardError</span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">StandardError</li>
|
78
|
-
|
79
|
-
<li class="next">MyHelp::Error</li>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
<a href="#" class="inheritanceTree">show all</a>
|
83
|
-
|
84
|
-
</dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<dl>
|
98
|
-
<dt>Defined in:</dt>
|
99
|
-
<dd>lib/my_help.rb</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
</div>
|
115
|
-
|
116
|
-
<div id="footer">
|
117
|
-
Generated on Fri Jan 6 13:07:57 2023 by
|
118
|
-
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
-
0.9.28 (ruby-3.0.2).
|
120
|
-
</div>
|
121
|
-
|
122
|
-
</div>
|
123
|
-
</body>
|
124
|
-
</html>
|
data/doc/MyHelp/GetConfig.html
DELETED
@@ -1,196 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Module: MyHelp::GetConfig
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.28
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "MyHelp::GetConfig";
|
19
|
-
relpath = '../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../_index.html">Index (G)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../MyHelp.html" title="MyHelp (module)">MyHelp</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">GetConfig</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Module: MyHelp::GetConfig
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
<dl>
|
78
|
-
<dt>Included in:</dt>
|
79
|
-
<dd><span class='object_link'><a href="CLI.html" title="MyHelp::CLI (class)">CLI</a></span>, <span class='object_link'><a href="Git.html" title="MyHelp::Git (class)">Git</a></span></dd>
|
80
|
-
</dl>
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
<dl>
|
85
|
-
<dt>Defined in:</dt>
|
86
|
-
<dd>lib/my_help/git_cli.rb</dd>
|
87
|
-
</dl>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<h2>
|
100
|
-
Instance Method Summary
|
101
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
102
|
-
</h2>
|
103
|
-
|
104
|
-
<ul class="summary">
|
105
|
-
|
106
|
-
<li class="public ">
|
107
|
-
<span class="summary_signature">
|
108
|
-
|
109
|
-
<a href="#get_config-instance_method" title="#get_config (instance method)">#<strong>get_config</strong> ⇒ Object </a>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
</span>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<span class="summary_desc"><div class='inline'>
|
124
|
-
<p>(args).</p>
|
125
|
-
</div></span>
|
126
|
-
|
127
|
-
</li>
|
128
|
-
|
129
|
-
|
130
|
-
</ul>
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
<div id="instance_method_details" class="method_details_list">
|
136
|
-
<h2>Instance Method Details</h2>
|
137
|
-
|
138
|
-
|
139
|
-
<div class="method_details first">
|
140
|
-
<h3 class="signature first" id="get_config-instance_method">
|
141
|
-
|
142
|
-
#<strong>get_config</strong> ⇒ <tt>Object</tt>
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
</h3><div class="docstring">
|
149
|
-
<div class="discussion">
|
150
|
-
|
151
|
-
<p>(args)</p>
|
152
|
-
|
153
|
-
|
154
|
-
</div>
|
155
|
-
</div>
|
156
|
-
<div class="tags">
|
157
|
-
|
158
|
-
|
159
|
-
</div><table class="source_code">
|
160
|
-
<tr>
|
161
|
-
<td>
|
162
|
-
<pre class="lines">
|
163
|
-
|
164
|
-
|
165
|
-
3
|
166
|
-
4
|
167
|
-
5
|
168
|
-
6
|
169
|
-
7</pre>
|
170
|
-
</td>
|
171
|
-
<td>
|
172
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/git_cli.rb', line 3</span>
|
173
|
-
|
174
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_get_config'>get_config</span> <span class='comment'>#(args)
|
175
|
-
</span> <span class='id identifier rubyid_parent_help_dir'>parent_help_dir</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>help_dir</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
176
|
-
<span class='id identifier rubyid_parent_help_dir'>parent_help_dir</span> <span class='op'>=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>HOME</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='id identifier rubyid_parent_help_dir'>parent_help_dir</span><span class='rparen'>)</span>
|
177
|
-
<span class='kw'>return</span> <span class='const'><span class='object_link'><a href="Config.html" title="MyHelp::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Config.html#initialize-instance_method" title="MyHelp::Config#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_parent_help_dir'>parent_help_dir</span><span class='rparen'>)</span>
|
178
|
-
<span class='kw'>end</span></pre>
|
179
|
-
</td>
|
180
|
-
</tr>
|
181
|
-
</table>
|
182
|
-
</div>
|
183
|
-
|
184
|
-
</div>
|
185
|
-
|
186
|
-
</div>
|
187
|
-
|
188
|
-
<div id="footer">
|
189
|
-
Generated on Fri Jan 6 13:07:57 2023 by
|
190
|
-
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
191
|
-
0.9.28 (ruby-3.0.2).
|
192
|
-
</div>
|
193
|
-
|
194
|
-
</div>
|
195
|
-
</body>
|
196
|
-
</html>
|
data/doc/MyHelp/Git.html
DELETED
@@ -1,291 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Class: MyHelp::Git
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.28
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "MyHelp::Git";
|
19
|
-
relpath = '../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../_index.html">Index (G)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../MyHelp.html" title="MyHelp (module)">MyHelp</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">Git</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Class: MyHelp::Git
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName">Thor</span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">Thor</li>
|
78
|
-
|
79
|
-
<li class="next">MyHelp::Git</li>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
<a href="#" class="inheritanceTree">show all</a>
|
83
|
-
|
84
|
-
</dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
<dl>
|
93
|
-
<dt>Includes:</dt>
|
94
|
-
<dd><span class='object_link'><a href="GetConfig.html" title="MyHelp::GetConfig (module)">GetConfig</a></span></dd>
|
95
|
-
</dl>
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
<dl>
|
103
|
-
<dt>Defined in:</dt>
|
104
|
-
<dd>lib/my_help/git_cli.rb</dd>
|
105
|
-
</dl>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
<h2>
|
118
|
-
Instance Method Summary
|
119
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
120
|
-
</h2>
|
121
|
-
|
122
|
-
<ul class="summary">
|
123
|
-
|
124
|
-
<li class="public ">
|
125
|
-
<span class="summary_signature">
|
126
|
-
|
127
|
-
<a href="#pull-instance_method" title="#pull (instance method)">#<strong>pull</strong> ⇒ Object </a>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
</span>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
142
|
-
|
143
|
-
</li>
|
144
|
-
|
145
|
-
|
146
|
-
<li class="public ">
|
147
|
-
<span class="summary_signature">
|
148
|
-
|
149
|
-
<a href="#push-instance_method" title="#push (instance method)">#<strong>push</strong> ⇒ Object </a>
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
</span>
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
164
|
-
|
165
|
-
</li>
|
166
|
-
|
167
|
-
|
168
|
-
</ul>
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="GetConfig.html" title="MyHelp::GetConfig (module)">GetConfig</a></span></h3>
|
181
|
-
<p class="inherited"><span class='object_link'><a href="GetConfig.html#get_config-instance_method" title="MyHelp::GetConfig#get_config (method)">#get_config</a></span></p>
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
<div id="instance_method_details" class="method_details_list">
|
186
|
-
<h2>Instance Method Details</h2>
|
187
|
-
|
188
|
-
|
189
|
-
<div class="method_details first">
|
190
|
-
<h3 class="signature first" id="pull-instance_method">
|
191
|
-
|
192
|
-
#<strong>pull</strong> ⇒ <tt>Object</tt>
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
</h3><table class="source_code">
|
199
|
-
<tr>
|
200
|
-
<td>
|
201
|
-
<pre class="lines">
|
202
|
-
|
203
|
-
|
204
|
-
15
|
205
|
-
16
|
206
|
-
17
|
207
|
-
18
|
208
|
-
19
|
209
|
-
20
|
210
|
-
21
|
211
|
-
22
|
212
|
-
23</pre>
|
213
|
-
</td>
|
214
|
-
<td>
|
215
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/git_cli.rb', line 15</span>
|
216
|
-
|
217
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_pull'>pull</span>
|
218
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>called my_help git pull</span><span class='tstring_end'>"</span></span>
|
219
|
-
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span>
|
220
|
-
<span class='id identifier rubyid_help_dir'>help_dir</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:local_help_dir</span><span class='rbracket'>]</span>
|
221
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>on the target git directory : %s</span><span class='tstring_end'>"</span></span> <span class='op'>%</span> <span class='id identifier rubyid_help_dir'>help_dir</span>
|
222
|
-
<span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_chdir'>chdir</span><span class='lparen'>(</span><span class='id identifier rubyid_help_dir'>help_dir</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
223
|
-
<span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>git pull origin main</span><span class='tstring_end'>"</span></span>
|
224
|
-
<span class='kw'>end</span>
|
225
|
-
<span class='kw'>end</span></pre>
|
226
|
-
</td>
|
227
|
-
</tr>
|
228
|
-
</table>
|
229
|
-
</div>
|
230
|
-
|
231
|
-
<div class="method_details ">
|
232
|
-
<h3 class="signature " id="push-instance_method">
|
233
|
-
|
234
|
-
#<strong>push</strong> ⇒ <tt>Object</tt>
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
</h3><table class="source_code">
|
241
|
-
<tr>
|
242
|
-
<td>
|
243
|
-
<pre class="lines">
|
244
|
-
|
245
|
-
|
246
|
-
27
|
247
|
-
28
|
248
|
-
29
|
249
|
-
30
|
250
|
-
31
|
251
|
-
32
|
252
|
-
33
|
253
|
-
34
|
254
|
-
35
|
255
|
-
36
|
256
|
-
37
|
257
|
-
38</pre>
|
258
|
-
</td>
|
259
|
-
<td>
|
260
|
-
<pre class="code"><span class="info file"># File 'lib/my_help/git_cli.rb', line 27</span>
|
261
|
-
|
262
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_push'>push</span>
|
263
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>called my_help git push</span><span class='tstring_end'>"</span></span>
|
264
|
-
<span class='id identifier rubyid_config'>config</span> <span class='op'>=</span> <span class='id identifier rubyid_get_config'>get_config</span>
|
265
|
-
<span class='id identifier rubyid_help_dir'>help_dir</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span><span class='lbracket'>[</span><span class='symbol'>:local_help_dir</span><span class='rbracket'>]</span>
|
266
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>on the target git directory : %s</span><span class='tstring_end'>"</span></span> <span class='op'>%</span> <span class='id identifier rubyid_help_dir'>help_dir</span>
|
267
|
-
<span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_chdir'>chdir</span><span class='lparen'>(</span><span class='id identifier rubyid_help_dir'>help_dir</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
268
|
-
<span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>git add -A</span><span class='tstring_end'>"</span></span>
|
269
|
-
<span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>git commit -m 'auto commit from my_help'</span><span class='tstring_end'>"</span></span>
|
270
|
-
<span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>git pull origin main</span><span class='tstring_end'>"</span></span>
|
271
|
-
<span class='id identifier rubyid_system'>system</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>git push origin main</span><span class='tstring_end'>"</span></span>
|
272
|
-
<span class='kw'>end</span>
|
273
|
-
<span class='kw'>end</span></pre>
|
274
|
-
</td>
|
275
|
-
</tr>
|
276
|
-
</table>
|
277
|
-
</div>
|
278
|
-
|
279
|
-
</div>
|
280
|
-
|
281
|
-
</div>
|
282
|
-
|
283
|
-
<div id="footer">
|
284
|
-
Generated on Fri Jan 6 13:07:57 2023 by
|
285
|
-
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
286
|
-
0.9.28 (ruby-3.0.2).
|
287
|
-
</div>
|
288
|
-
|
289
|
-
</div>
|
290
|
-
</body>
|
291
|
-
</html>
|