smdev 0.8.0 → 0.10.0
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/lib/smdev.rb +7 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f2fae9ae96c661cbdb81f9b27096a033349ab411fce5335fca146f6536369d0
|
|
4
|
+
data.tar.gz: c4ff658ccfb0480de1da964564cad094f622586a67870020769a6647fa75a8b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b265c8da2ed9c07e6ca935ce1edca112e56f5939d241b9ec3234c85cadf08a886aa2f950f8aee17a01b60be0fb143980db9ca50797a169f465448f5b80daabed
|
|
7
|
+
data.tar.gz: d9a1204f361399e3cd86b54dd6d759665c578bd14edf32615ecf4ffd39fbfdaabd825284b1130252a2f26902f4177e16070dd94601e5ffaedb21427b9bd12721
|
data/lib/smdev.rb
CHANGED
|
@@ -10,7 +10,8 @@ module Smdev
|
|
|
10
10
|
options = {}
|
|
11
11
|
commands = ["local_app_setup : Install local requirements for application. (Rails Only Currently)\n",
|
|
12
12
|
"system_install : Install Homebrew, Ruby, PostgreSQL, and Ruby on Rails\n",
|
|
13
|
-
"
|
|
13
|
+
"clone_repos : Checkout all repositories for StrongMind\n",
|
|
14
|
+
"update_repos : Checkout all repositories for StrongMind\n",
|
|
14
15
|
"console : Open a rails console on ECS\n",
|
|
15
16
|
"ssh : Open a bash shell on ECS\n"
|
|
16
17
|
]
|
|
@@ -64,8 +65,8 @@ module Smdev
|
|
|
64
65
|
system('rails', 'db:migrate')
|
|
65
66
|
when "system_install"
|
|
66
67
|
system_install
|
|
67
|
-
when "
|
|
68
|
-
|
|
68
|
+
when "clone_repos"
|
|
69
|
+
clone_repos(options)
|
|
69
70
|
when "update_repos"
|
|
70
71
|
update_repos(options)
|
|
71
72
|
when "console"
|
|
@@ -153,6 +154,7 @@ module Smdev
|
|
|
153
154
|
token = STDIN.noecho(&:gets).chomp
|
|
154
155
|
puts ""
|
|
155
156
|
end
|
|
157
|
+
|
|
156
158
|
# Authenticate with the GitHub API using the user's credentials
|
|
157
159
|
client = Octokit::Client.new(access_token: token)
|
|
158
160
|
|
|
@@ -217,9 +219,10 @@ module Smdev
|
|
|
217
219
|
end
|
|
218
220
|
|
|
219
221
|
|
|
220
|
-
def
|
|
222
|
+
def clone_repos(options)
|
|
221
223
|
repos = get_repos(options)
|
|
222
224
|
|
|
225
|
+
|
|
223
226
|
# Clone each repository to a local directory
|
|
224
227
|
repos.each do |repo|
|
|
225
228
|
clone_url = repo.clone_url
|