codestrap 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +2 -2
- data/codestrap.gemspec +11 -2
- data/lib/codestrap.rb +96 -0
- data/lib/codestrap/cli.rb +11 -1
- data/lib/codestrap/config.rb +18 -8
- data/lib/codestrap/version.rb +1 -1
- metadata +47 -222
- data/.gitignore +0 -20
- data/.travis.yml +0 -4
- data/Gemfile +0 -6
- data/LICENSE.txt +0 -13
- data/Rakefile +0 -51
- data/config/projects/codestrap.rb +0 -22
- data/config/software/codestrap.rb +0 -20
- data/config/software/ruby.rb +0 -247
- data/config/software/zlib.rb +0 -86
- data/features/client.feature +0 -99
- data/features/fixtures/client/home/codestrap/bin/.empty +0 -0
- data/features/fixtures/client/home/codestrap/content/bash.erb +0 -3
- data/features/fixtures/client/home/codestrap/content/gem/dir/file +0 -0
- data/features/fixtures/client/home/codestrap/content/gem/dir/template +0 -3
- data/features/fixtures/client/home/codestrap/content/gem/file +0 -1
- data/features/fixtures/client/home/codestrap/content/gem/template +0 -3
- data/features/fixtures/client/home/codestrap/content/local_remote.erb +0 -1
- data/features/fixtures/client/home/codestrap/content/local_remote/dir/file +0 -0
- data/features/fixtures/client/home/codestrap/content/local_remote/dir/template +0 -3
- data/features/fixtures/client/home/codestrap/content/local_remote/file +0 -1
- data/features/fixtures/client/home/codestrap/content/local_remote/template +0 -3
- data/features/fixtures/client/home/codestrap/objects/local.json +0 -3
- data/features/fixtures/client/output/.empty +0 -0
- data/features/fixtures/client/var/lib/codestrap/bin/.empty +0 -0
- data/features/fixtures/client/var/lib/codestrap/content/bashremote.erb +0 -3
- data/features/fixtures/client/var/lib/codestrap/content/gemremote/dir/file +0 -0
- data/features/fixtures/client/var/lib/codestrap/content/gemremote/dir/template +0 -3
- data/features/fixtures/client/var/lib/codestrap/content/gemremote/file +0 -0
- data/features/fixtures/client/var/lib/codestrap/content/gemremote/template +0 -3
- data/features/fixtures/client/var/lib/codestrap/content/remote_local.erb +0 -1
- data/features/fixtures/client/var/lib/codestrap/content/remote_local/dir/file +0 -0
- data/features/fixtures/client/var/lib/codestrap/content/remote_local/dir/template +0 -3
- data/features/fixtures/client/var/lib/codestrap/content/remote_local/file +0 -1
- data/features/fixtures/client/var/lib/codestrap/content/remote_local/template +0 -3
- data/features/fixtures/client/var/lib/codestrap/content/remote_remote.erb +0 -1
- data/features/fixtures/client/var/lib/codestrap/content/remote_remote/dir/file +0 -0
- data/features/fixtures/client/var/lib/codestrap/content/remote_remote/dir/template +0 -3
- data/features/fixtures/client/var/lib/codestrap/content/remote_remote/file +0 -0
- data/features/fixtures/client/var/lib/codestrap/content/remote_remote/template +0 -3
- data/features/fixtures/client/var/lib/codestrap/objects/remote.json +0 -3
- data/features/fixtures/logging/home/logging/codestrap/bin/stubdirectory/.empty +0 -0
- data/features/fixtures/logging/home/logging/codestrap/bin/stubnotlink +0 -0
- data/features/fixtures/logging/home/logging/codestrap/content/.empty +0 -0
- data/features/fixtures/logging/home/logging/codestrap/objects/.empty +0 -0
- data/features/fixtures/server/mixed/var/lib/stub/content/address.erb +0 -3
- data/features/fixtures/server/mixed/var/lib/stub/content/cell.erb +0 -3
- data/features/fixtures/server/mixed/var/lib/stub/content/email.erb +0 -3
- data/features/fixtures/server/mixed/var/lib/stub/content/mobile.erb +0 -3
- data/features/fixtures/server/mixed/var/lib/stub/content/name.erb +0 -3
- data/features/fixtures/server/mixed/var/lib/stub/content/phone.erb +0 -3
- data/features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/Modulefile +0 -12
- data/features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/README +0 -17
- data/features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/manifests/init.pp +0 -42
- data/features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/spec/spec_helper.rb +0 -18
- data/features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/tests/init.pp +0 -13
- data/features/fixtures/server/mixed/var/lib/stub/objects/contact.json +0 -8
- data/features/fixtures/server/mixed/var/lib/stub/objects/shadow/contact.json +0 -8
- data/features/fixtures/strap/projects/etc/.empty +0 -0
- data/features/fixtures/strap/projects/home/user/dir/bin/.empty +0 -0
- data/features/fixtures/strap/projects/home/user/dir/content/puppetmodule/Modulefile +0 -12
- data/features/fixtures/strap/projects/home/user/dir/content/puppetmodule/README +0 -17
- data/features/fixtures/strap/projects/home/user/dir/content/puppetmodule/manifests/:stub:project.name:/subclass.pp +0 -3
- data/features/fixtures/strap/projects/home/user/dir/content/puppetmodule/manifests/init.pp +0 -42
- data/features/fixtures/strap/projects/home/user/dir/content/puppetmodule/spec/spec_helper.rb +0 -18
- data/features/fixtures/strap/projects/home/user/dir/content/puppetmodule/tests/init.pp +0 -13
- data/features/fixtures/strap/projects/home/user/dir/objects/contact.json +0 -8
- data/features/fixtures/strap/projects/home/user/dir/objects/shadow/contact.json +0 -8
- data/features/fixtures/strap/projects/output/.empty +0 -0
- data/features/fixtures/stub/contact/etc/.empty +0 -0
- data/features/fixtures/stub/contact/home/user/dir/bin/.empty +0 -0
- data/features/fixtures/stub/contact/home/user/dir/content/address.erb +0 -3
- data/features/fixtures/stub/contact/home/user/dir/content/cell.erb +0 -3
- data/features/fixtures/stub/contact/home/user/dir/content/email.erb +0 -3
- data/features/fixtures/stub/contact/home/user/dir/content/mobile.erb +0 -3
- data/features/fixtures/stub/contact/home/user/dir/content/name.erb +0 -3
- data/features/fixtures/stub/contact/home/user/dir/content/phone.erb +0 -3
- data/features/fixtures/stub/contact/home/user/dir/objects/contact.json +0 -8
- data/features/fixtures/stub/contact/home/user/dir/objects/shadow/contact.json +0 -8
- data/features/fixtures/stub/contact/output/.empty +0 -0
- data/features/fixtures/stub/date/etc/.empty +0 -0
- data/features/fixtures/stub/date/home/user/stub/bin/.empty +0 -0
- data/features/fixtures/stub/date/home/user/stub/content/day.erb +0 -3
- data/features/fixtures/stub/date/home/user/stub/content/hour.erb +0 -3
- data/features/fixtures/stub/date/home/user/stub/content/minute.erb +0 -3
- data/features/fixtures/stub/date/home/user/stub/content/month.erb +0 -3
- data/features/fixtures/stub/date/home/user/stub/content/second.erb +0 -3
- data/features/fixtures/stub/date/home/user/stub/content/year.erb +0 -3
- data/features/fixtures/stub/date/home/user/stub/objects/.empty +0 -0
- data/features/fixtures/stub/date/output/.empty +0 -0
- data/features/fixtures/stub/script/etc/.empty +0 -0
- data/features/fixtures/stub/script/home/user/stub/bin/.empty +0 -0
- data/features/fixtures/stub/script/home/user/stub/content/credentials.erb +0 -6
- data/features/fixtures/stub/script/home/user/stub/objects/credentials.rb +0 -11
- data/features/fixtures/stub/script/output/.empty +0 -0
- data/features/logging.feature +0 -39
- data/features/object_scripts.feature +0 -13
- data/features/server.feature +0 -36
- data/features/step_definitions/client_steps.rb +0 -99
- data/features/step_definitions/logging_steps.rb +0 -65
- data/features/step_definitions/object_scripts_steps.rb +0 -26
- data/features/step_definitions/server_steps.rb +0 -112
- data/features/step_definitions/strap_steps.rb +0 -69
- data/features/step_definitions/stub_option_simple_steps.rb +0 -31
- data/features/step_definitions/stub_steps.rb +0 -94
- data/features/strap.feature +0 -34
- data/features/stub.feature +0 -157
- data/features/stub_option_simple.feature +0 -14
- data/features/stub_packages.feature +0 -15
- data/features/support/env.rb +0 -197
- data/omnibus.rb +0 -53
- data/package-scripts/codestrap/postinst +0 -25
- data/package-scripts/codestrap/postrm +0 -17
- data/package-scripts/codestrap/preinst +0 -7
- data/package-scripts/codestrap/prerm +0 -15
- data/resources/codestrap/pkg/background.png +0 -0
- data/resources/codestrap/pkg/distribution.xml.erb +0 -22
- data/resources/codestrap/pkg/license.html.erb +0 -202
- data/resources/codestrap/pkg/welcome.html.erb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92eee481dd99efd66336e363779fbdeae2309ebf
|
4
|
+
data.tar.gz: 48b552335229cd33c06ff0943f4749ef64603329
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63eda6e051d484a8d1ae010c7ae7050160d57a314e4b68375e0364df9f49c282b196ab428c26d0e5f95c37527f433ff4da26cfe09b59d817d76b295ce4846b91
|
7
|
+
data.tar.gz: fd6f4950d16a4b8a5af4ada759ac42269628c27f94170cbe84b25a58b7226a3bd554044a7903f3e928b7dff1234e135d0107f139a0b9871ee3e9e961f55ae64d
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v0.2.0](https://github.com/dexterp/codestrap/tree/v0.2.0)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/dexterp/codestrap/compare/v0.1.0...HEAD)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Add PATH=$HOME/.codestrap/bin to $HOME/.profile or equivalent on initialisation [\#6](https://github.com/dexterp/codestrap/issues/6)
|
10
|
+
- Uninstall previous version on installation [\#4](https://github.com/dexterp/codestrap/issues/4)
|
11
|
+
|
12
|
+
**Fixed bugs:**
|
13
|
+
|
14
|
+
- Symlink /usr/bin/strap fails to create on OSX [\#5](https://github.com/dexterp/codestrap/issues/5)
|
15
|
+
- Initialise $HOME/.codestrap [\#3](https://github.com/dexterp/codestrap/issues/3)
|
16
|
+
- RVM paths clash with omnibus packages [\#1](https://github.com/dexterp/codestrap/issues/1)
|
17
|
+
|
18
|
+
## [v0.1.0](https://github.com/dexterp/codestrap/tree/v0.2.0) (2016-07-10)
|
19
|
+
|
20
|
+
|
21
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
@@ -59,11 +59,11 @@ straprubygem mygem
|
|
59
59
|
|
60
60
|
For template setups for both projects and individual files see ...
|
61
61
|
|
62
|
-
[BOILERPLATE](BOILERPLATE.md)
|
62
|
+
[BOILERPLATE](https://github.com/dexterp/codestrap/blob/master/BOILERPLATE.md)
|
63
63
|
|
64
64
|
## Configuration File
|
65
65
|
|
66
66
|
Codestrap uses "Codestrapfile" as a configuration file. For details see.
|
67
67
|
|
68
|
-
[CODESTRAPFILE](
|
68
|
+
[CODESTRAPFILE](https://github.com/dexterp/codestrap/blob/master/BOILERPLATE.md)
|
69
69
|
|
data/codestrap.gemspec
CHANGED
@@ -14,10 +14,16 @@ Codestrap is a file codestrap and boilerplate project tool. It is run from the c
|
|
14
14
|
and has been designed to make use of the CLIs autocomplete functionality available
|
15
15
|
on supported operating systems shells.
|
16
16
|
EOF
|
17
|
-
spec.homepage = ''
|
17
|
+
spec.homepage = 'https://github.com/dexterp/codestrap'
|
18
18
|
spec.license = 'Apache'
|
19
19
|
|
20
|
-
|
20
|
+
gem_files = `git ls-files -z`.split("\x0")
|
21
|
+
%w[^features/ ^omnibus/ ^package-scripts/
|
22
|
+
.gitignore .travis.yml Gemfile LICENSE.txt
|
23
|
+
Rakefile Vagrantfile].each do |ignore|
|
24
|
+
gem_files.reject! { |file| file =~ /#{ignore}/ }
|
25
|
+
end
|
26
|
+
spec.files = gem_files
|
21
27
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
28
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
23
29
|
spec.require_paths = ['lib']
|
@@ -29,9 +35,12 @@ EOF
|
|
29
35
|
spec.add_development_dependency 'rack-test'
|
30
36
|
spec.add_development_dependency 'rake'
|
31
37
|
spec.add_development_dependency 'rspec'
|
38
|
+
spec.add_development_dependency 'rspec-expectations'
|
32
39
|
spec.add_development_dependency 'webmock'
|
33
40
|
spec.add_development_dependency 'shotgun'
|
34
41
|
spec.add_development_dependency 'yard'
|
35
42
|
spec.add_development_dependency 'redcarpet'
|
36
43
|
spec.add_development_dependency 'mocha'
|
44
|
+
spec.add_development_dependency 'dotenv'
|
45
|
+
spec.add_development_dependency 'github_changelog_generator'
|
37
46
|
end
|
data/lib/codestrap.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'etc'
|
2
2
|
require 'logger'
|
3
|
+
require 'fileutils'
|
3
4
|
require 'codestrap/cli'
|
4
5
|
require 'codestrap/client'
|
5
6
|
require 'codestrap/config'
|
@@ -42,6 +43,16 @@ module Codestrap
|
|
42
43
|
# @return [Codestrap::Config]
|
43
44
|
attr_accessor :config
|
44
45
|
|
46
|
+
# Set Environment variables.
|
47
|
+
attr_writer :env
|
48
|
+
|
49
|
+
# Environment variables. Defaults to system environment variables
|
50
|
+
#
|
51
|
+
# @return [Hash]
|
52
|
+
def env
|
53
|
+
@env ||= ENV.to_hash
|
54
|
+
end
|
55
|
+
|
45
56
|
# Set stub template
|
46
57
|
# @param [String] template
|
47
58
|
# Codestrap name
|
@@ -149,6 +160,8 @@ module Codestrap
|
|
149
160
|
self.project = $1
|
150
161
|
strap
|
151
162
|
when self.cli.options.generate
|
163
|
+
strap_rcfile
|
164
|
+
strap_init_home
|
152
165
|
strap_links
|
153
166
|
else
|
154
167
|
logger.error :INVALIDCMD, cli.command
|
@@ -199,6 +212,89 @@ module Codestrap
|
|
199
212
|
renderer.to_disk
|
200
213
|
end
|
201
214
|
|
215
|
+
# Adds an entry to rcfile depending on shell
|
216
|
+
#
|
217
|
+
def strap_rcfile
|
218
|
+
line = "\nexport PATH=$PATH:$HOME/.codestrap/bin\n"
|
219
|
+
|
220
|
+
# Check shell
|
221
|
+
rcfile = begin
|
222
|
+
case env['SHELL']
|
223
|
+
when %r{/bin/bash$}
|
224
|
+
File.join(env['HOME'], '.bash_profile')
|
225
|
+
when %r{/bin/zsh$}
|
226
|
+
File.join(env['HOME'], '.zshrc')
|
227
|
+
when %r{/bin/sh$}
|
228
|
+
File.join(env['HOME'], '.profile')
|
229
|
+
else
|
230
|
+
nil
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# Check rcfile
|
235
|
+
write = begin
|
236
|
+
case
|
237
|
+
when !rcfile
|
238
|
+
false
|
239
|
+
when(File.exist?(rcfile) and File.foreach(rcfile).grep(%r{export PATH=\$PATH:\$HOME/\.codestrap/bin}).length < 1)
|
240
|
+
line = "\n" + line
|
241
|
+
true
|
242
|
+
when(not File.exist?(rcfile))
|
243
|
+
true
|
244
|
+
else
|
245
|
+
false
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
# Write file
|
250
|
+
if write
|
251
|
+
puts "Adding PATH='$PATH:$HOME/.codestrap/bin' to #{rcfile}"
|
252
|
+
File.open(rcfile,'a') do |fh|
|
253
|
+
fh.write(line)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
# Initialize home directory
|
259
|
+
#
|
260
|
+
# @param [String] codestrap
|
261
|
+
# Optional name of codestrap directory in $HOME.
|
262
|
+
# Defaults to '.codestrap'
|
263
|
+
def strap_init_home(codestrap='.codestrap')
|
264
|
+
root_path = File.join(env['HOME'], codestrap)
|
265
|
+
unless File.exist?(root_path)
|
266
|
+
puts "Creating #{root_path}"
|
267
|
+
Dir.mkdir(root_path)
|
268
|
+
end
|
269
|
+
%w(bin content objects).each do |dir|
|
270
|
+
path = File.join(root_path, dir)
|
271
|
+
unless File.exist?(path)
|
272
|
+
puts "Creating #{path}"
|
273
|
+
FileUtils.mkpath path
|
274
|
+
end
|
275
|
+
end
|
276
|
+
codestrapfile = File.join(env['HOME'], codestrap, 'Codestrapfile')
|
277
|
+
unless File.exist?(codestrapfile)
|
278
|
+
tmpfile = Tempfile.new('codestrapfile')
|
279
|
+
output = <<EOF
|
280
|
+
Codestrapfile.config do |conf|
|
281
|
+
# Base directory or list of base directories that contain "object" and "content" sub directories
|
282
|
+
# Defaults to $HOME/.codestrap
|
283
|
+
#conf.local.base = [ "ENV['HOME']/.codestrap", '/usr/local/codestrap' ]
|
284
|
+
#conf.local.base = "ENV['HOME']/.codestrap"
|
285
|
+
|
286
|
+
# Ignore paths or list of paths to ignore
|
287
|
+
#conf.local.ignore = [ '.git', '.svn' ]
|
288
|
+
#conf.local.ignore = '.git'
|
289
|
+
end
|
290
|
+
EOF
|
291
|
+
tmpfile.write(output)
|
292
|
+
tmpfile.close
|
293
|
+
File.rename(tmpfile, codestrapfile)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
# Generate symlinks
|
202
298
|
def strap_links
|
203
299
|
# FixMe - Move to Codestrap::Log
|
204
300
|
unless cli.command =~ /^strap$/
|
data/lib/codestrap/cli.rb
CHANGED
@@ -13,6 +13,16 @@ module Codestrap
|
|
13
13
|
# @return [String]
|
14
14
|
attr_accessor :argv
|
15
15
|
|
16
|
+
# Set Environment variables.
|
17
|
+
attr_writer :env
|
18
|
+
|
19
|
+
# Environment variables. Defaults to system environment variables
|
20
|
+
#
|
21
|
+
# @return [Hash]
|
22
|
+
def env
|
23
|
+
@env ||= ENV.to_hash
|
24
|
+
end
|
25
|
+
|
16
26
|
# Absolute path of calling command
|
17
27
|
#
|
18
28
|
# @param [String] path
|
@@ -25,7 +35,7 @@ module Codestrap
|
|
25
35
|
p = File.expand_path(path)
|
26
36
|
@abspath = p if File.exist? p
|
27
37
|
else
|
28
|
-
|
38
|
+
env['PATH'].split(File::PATH_SEPARATOR).each do |d|
|
29
39
|
p = File.join(d, path)
|
30
40
|
next unless d.length > 0
|
31
41
|
next unless File.exist? p
|
data/lib/codestrap/config.rb
CHANGED
@@ -107,7 +107,7 @@ module Codestrap
|
|
107
107
|
def initialize
|
108
108
|
# Setup defaults
|
109
109
|
Codestrapfile.config do |conf|
|
110
|
-
conf.local.base = %W[codestrap .codestrap].map { |d| File.join(
|
110
|
+
conf.local.base = %W[codestrap .codestrap].map { |d| File.join(env['HOME'], d) }
|
111
111
|
conf.local.ignore = []
|
112
112
|
conf.server.bind = '127.0.0.1'
|
113
113
|
conf.server.port = '4567'
|
@@ -119,9 +119,19 @@ module Codestrap
|
|
119
119
|
load_codestrapfile
|
120
120
|
end
|
121
121
|
|
122
|
+
# Set Environment variables.
|
123
|
+
attr_writer :env
|
124
|
+
|
125
|
+
# Environment variables. Defaults to system environment variables
|
126
|
+
#
|
127
|
+
# @return [Hash]
|
128
|
+
def env
|
129
|
+
@env ||= ENV.to_hash
|
130
|
+
end
|
131
|
+
|
122
132
|
def codestrapfile_mtime(codestrapfile)
|
123
|
-
if not codestrapfile and
|
124
|
-
codestrapfile =
|
133
|
+
if not codestrapfile and env['CODESTRAPFILE'] and File.exist? env['CODESTRAPFILE']
|
134
|
+
codestrapfile = env['CODESTRAPFILE']
|
125
135
|
end
|
126
136
|
if codestrapfile
|
127
137
|
return File::Stat.new(codestrapfile).mtime
|
@@ -134,13 +144,13 @@ module Codestrap
|
|
134
144
|
reload = false
|
135
145
|
mtime = nil
|
136
146
|
codestrapfile = nil
|
137
|
-
if
|
147
|
+
if env['CODESTRAPFILE'] and !@@codestrapfile
|
138
148
|
reload = true
|
139
|
-
codestrapfile =
|
149
|
+
codestrapfile = env['CODESTRAPFILE']
|
140
150
|
mtime = codestrapfile_mtime(codestrapfile)
|
141
|
-
elsif
|
151
|
+
elsif env['CODESTRAPFILE'] and !env['CODESTRAPFILE'].eql?(@@codestrapfile)
|
142
152
|
reload = true
|
143
|
-
codestrapfile =
|
153
|
+
codestrapfile = env['CODESTRAPFILE']
|
144
154
|
mtime = codestrapfile_mtime(codestrapfile)
|
145
155
|
elsif @@codestrapfile
|
146
156
|
mtime = codestrapfile_mtime(@@codestrapfile)
|
@@ -161,7 +171,7 @@ module Codestrap
|
|
161
171
|
codestrapfile_mtime = nil
|
162
172
|
unless codestrapfile
|
163
173
|
# Load possible codestrapfiles
|
164
|
-
[
|
174
|
+
[env['CODESTRAPFILE'], File.join(env['HOME'], 'codestrap', 'Codestrapfile'), File.join(env['HOME'], '.codestrap', 'Codestrapfile')].each do |sf|
|
165
175
|
next unless sf and File.exist?(sf)
|
166
176
|
codestrapfile = sf
|
167
177
|
codestrapfile_mtime = codestrapfile_mtime(sf)
|
data/lib/codestrap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codestrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dexter Plameras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-expectations
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: webmock
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +192,34 @@ dependencies:
|
|
178
192
|
- - ">="
|
179
193
|
- !ruby/object:Gem::Version
|
180
194
|
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: dotenv
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: github_changelog_generator
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
181
223
|
description: |
|
182
224
|
Codestrap is a file codestrap and boilerplate project tool. It is run from the command line
|
183
225
|
and has been designed to make use of the CLIs autocomplete functionality available
|
@@ -190,122 +232,14 @@ executables:
|
|
190
232
|
extensions: []
|
191
233
|
extra_rdoc_files: []
|
192
234
|
files:
|
193
|
-
- ".gitignore"
|
194
|
-
- ".travis.yml"
|
195
235
|
- ".yardopts"
|
196
236
|
- BOILERPLATE.md
|
237
|
+
- CHANGELOG.md
|
197
238
|
- CODESTRAPFILE.md
|
198
|
-
- Gemfile
|
199
|
-
- LICENSE.txt
|
200
239
|
- README.md
|
201
|
-
- Rakefile
|
202
240
|
- bin/strap
|
203
241
|
- bin/upstrap
|
204
242
|
- codestrap.gemspec
|
205
|
-
- config/projects/codestrap.rb
|
206
|
-
- config/software/codestrap.rb
|
207
|
-
- config/software/ruby.rb
|
208
|
-
- config/software/zlib.rb
|
209
|
-
- features/client.feature
|
210
|
-
- features/fixtures/client/home/codestrap/bin/.empty
|
211
|
-
- features/fixtures/client/home/codestrap/content/bash.erb
|
212
|
-
- features/fixtures/client/home/codestrap/content/gem/dir/file
|
213
|
-
- features/fixtures/client/home/codestrap/content/gem/dir/template
|
214
|
-
- features/fixtures/client/home/codestrap/content/gem/file
|
215
|
-
- features/fixtures/client/home/codestrap/content/gem/template
|
216
|
-
- features/fixtures/client/home/codestrap/content/local_remote.erb
|
217
|
-
- features/fixtures/client/home/codestrap/content/local_remote/dir/file
|
218
|
-
- features/fixtures/client/home/codestrap/content/local_remote/dir/template
|
219
|
-
- features/fixtures/client/home/codestrap/content/local_remote/file
|
220
|
-
- features/fixtures/client/home/codestrap/content/local_remote/template
|
221
|
-
- features/fixtures/client/home/codestrap/objects/local.json
|
222
|
-
- features/fixtures/client/output/.empty
|
223
|
-
- features/fixtures/client/var/lib/codestrap/bin/.empty
|
224
|
-
- features/fixtures/client/var/lib/codestrap/content/bashremote.erb
|
225
|
-
- features/fixtures/client/var/lib/codestrap/content/gemremote/dir/file
|
226
|
-
- features/fixtures/client/var/lib/codestrap/content/gemremote/dir/template
|
227
|
-
- features/fixtures/client/var/lib/codestrap/content/gemremote/file
|
228
|
-
- features/fixtures/client/var/lib/codestrap/content/gemremote/template
|
229
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local.erb
|
230
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local/dir/file
|
231
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local/dir/template
|
232
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local/file
|
233
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local/template
|
234
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote.erb
|
235
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote/dir/file
|
236
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote/dir/template
|
237
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote/file
|
238
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote/template
|
239
|
-
- features/fixtures/client/var/lib/codestrap/objects/remote.json
|
240
|
-
- features/fixtures/logging/home/logging/codestrap/bin/stubdirectory/.empty
|
241
|
-
- features/fixtures/logging/home/logging/codestrap/bin/stubnotlink
|
242
|
-
- features/fixtures/logging/home/logging/codestrap/content/.empty
|
243
|
-
- features/fixtures/logging/home/logging/codestrap/objects/.empty
|
244
|
-
- features/fixtures/server/mixed/var/lib/stub/content/address.erb
|
245
|
-
- features/fixtures/server/mixed/var/lib/stub/content/cell.erb
|
246
|
-
- features/fixtures/server/mixed/var/lib/stub/content/email.erb
|
247
|
-
- features/fixtures/server/mixed/var/lib/stub/content/mobile.erb
|
248
|
-
- features/fixtures/server/mixed/var/lib/stub/content/name.erb
|
249
|
-
- features/fixtures/server/mixed/var/lib/stub/content/phone.erb
|
250
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/Modulefile
|
251
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/README
|
252
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/manifests/init.pp
|
253
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/spec/spec_helper.rb
|
254
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/tests/init.pp
|
255
|
-
- features/fixtures/server/mixed/var/lib/stub/objects/contact.json
|
256
|
-
- features/fixtures/server/mixed/var/lib/stub/objects/shadow/contact.json
|
257
|
-
- features/fixtures/strap/projects/etc/.empty
|
258
|
-
- features/fixtures/strap/projects/home/user/dir/bin/.empty
|
259
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/Modulefile
|
260
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/README
|
261
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/manifests/:stub:project.name:/subclass.pp
|
262
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/manifests/init.pp
|
263
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/spec/spec_helper.rb
|
264
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/tests/init.pp
|
265
|
-
- features/fixtures/strap/projects/home/user/dir/objects/contact.json
|
266
|
-
- features/fixtures/strap/projects/home/user/dir/objects/shadow/contact.json
|
267
|
-
- features/fixtures/strap/projects/output/.empty
|
268
|
-
- features/fixtures/stub/contact/etc/.empty
|
269
|
-
- features/fixtures/stub/contact/home/user/dir/bin/.empty
|
270
|
-
- features/fixtures/stub/contact/home/user/dir/content/address.erb
|
271
|
-
- features/fixtures/stub/contact/home/user/dir/content/cell.erb
|
272
|
-
- features/fixtures/stub/contact/home/user/dir/content/email.erb
|
273
|
-
- features/fixtures/stub/contact/home/user/dir/content/mobile.erb
|
274
|
-
- features/fixtures/stub/contact/home/user/dir/content/name.erb
|
275
|
-
- features/fixtures/stub/contact/home/user/dir/content/phone.erb
|
276
|
-
- features/fixtures/stub/contact/home/user/dir/objects/contact.json
|
277
|
-
- features/fixtures/stub/contact/home/user/dir/objects/shadow/contact.json
|
278
|
-
- features/fixtures/stub/contact/output/.empty
|
279
|
-
- features/fixtures/stub/date/etc/.empty
|
280
|
-
- features/fixtures/stub/date/home/user/stub/bin/.empty
|
281
|
-
- features/fixtures/stub/date/home/user/stub/content/day.erb
|
282
|
-
- features/fixtures/stub/date/home/user/stub/content/hour.erb
|
283
|
-
- features/fixtures/stub/date/home/user/stub/content/minute.erb
|
284
|
-
- features/fixtures/stub/date/home/user/stub/content/month.erb
|
285
|
-
- features/fixtures/stub/date/home/user/stub/content/second.erb
|
286
|
-
- features/fixtures/stub/date/home/user/stub/content/year.erb
|
287
|
-
- features/fixtures/stub/date/home/user/stub/objects/.empty
|
288
|
-
- features/fixtures/stub/date/output/.empty
|
289
|
-
- features/fixtures/stub/script/etc/.empty
|
290
|
-
- features/fixtures/stub/script/home/user/stub/bin/.empty
|
291
|
-
- features/fixtures/stub/script/home/user/stub/content/credentials.erb
|
292
|
-
- features/fixtures/stub/script/home/user/stub/objects/credentials.rb
|
293
|
-
- features/fixtures/stub/script/output/.empty
|
294
|
-
- features/logging.feature
|
295
|
-
- features/object_scripts.feature
|
296
|
-
- features/server.feature
|
297
|
-
- features/step_definitions/client_steps.rb
|
298
|
-
- features/step_definitions/logging_steps.rb
|
299
|
-
- features/step_definitions/object_scripts_steps.rb
|
300
|
-
- features/step_definitions/server_steps.rb
|
301
|
-
- features/step_definitions/strap_steps.rb
|
302
|
-
- features/step_definitions/stub_option_simple_steps.rb
|
303
|
-
- features/step_definitions/stub_steps.rb
|
304
|
-
- features/strap.feature
|
305
|
-
- features/stub.feature
|
306
|
-
- features/stub_option_simple.feature
|
307
|
-
- features/stub_packages.feature
|
308
|
-
- features/support/env.rb
|
309
243
|
- lib/codestrap.rb
|
310
244
|
- lib/codestrap/cli.rb
|
311
245
|
- lib/codestrap/client.rb
|
@@ -329,16 +263,7 @@ files:
|
|
329
263
|
- lib/codestrap/stub/factory.rb
|
330
264
|
- lib/codestrap/stub/standard.rb
|
331
265
|
- lib/codestrap/version.rb
|
332
|
-
|
333
|
-
- package-scripts/codestrap/postinst
|
334
|
-
- package-scripts/codestrap/postrm
|
335
|
-
- package-scripts/codestrap/preinst
|
336
|
-
- package-scripts/codestrap/prerm
|
337
|
-
- resources/codestrap/pkg/background.png
|
338
|
-
- resources/codestrap/pkg/distribution.xml.erb
|
339
|
-
- resources/codestrap/pkg/license.html.erb
|
340
|
-
- resources/codestrap/pkg/welcome.html.erb
|
341
|
-
homepage: ''
|
266
|
+
homepage: https://github.com/dexterp/codestrap
|
342
267
|
licenses:
|
343
268
|
- Apache
|
344
269
|
metadata: {}
|
@@ -362,105 +287,5 @@ rubygems_version: 2.4.8
|
|
362
287
|
signing_key:
|
363
288
|
specification_version: 4
|
364
289
|
summary: File codestrap and boilerplate command line tool.
|
365
|
-
test_files:
|
366
|
-
- features/client.feature
|
367
|
-
- features/fixtures/client/home/codestrap/bin/.empty
|
368
|
-
- features/fixtures/client/home/codestrap/content/bash.erb
|
369
|
-
- features/fixtures/client/home/codestrap/content/gem/dir/file
|
370
|
-
- features/fixtures/client/home/codestrap/content/gem/dir/template
|
371
|
-
- features/fixtures/client/home/codestrap/content/gem/file
|
372
|
-
- features/fixtures/client/home/codestrap/content/gem/template
|
373
|
-
- features/fixtures/client/home/codestrap/content/local_remote.erb
|
374
|
-
- features/fixtures/client/home/codestrap/content/local_remote/dir/file
|
375
|
-
- features/fixtures/client/home/codestrap/content/local_remote/dir/template
|
376
|
-
- features/fixtures/client/home/codestrap/content/local_remote/file
|
377
|
-
- features/fixtures/client/home/codestrap/content/local_remote/template
|
378
|
-
- features/fixtures/client/home/codestrap/objects/local.json
|
379
|
-
- features/fixtures/client/output/.empty
|
380
|
-
- features/fixtures/client/var/lib/codestrap/bin/.empty
|
381
|
-
- features/fixtures/client/var/lib/codestrap/content/bashremote.erb
|
382
|
-
- features/fixtures/client/var/lib/codestrap/content/gemremote/dir/file
|
383
|
-
- features/fixtures/client/var/lib/codestrap/content/gemremote/dir/template
|
384
|
-
- features/fixtures/client/var/lib/codestrap/content/gemremote/file
|
385
|
-
- features/fixtures/client/var/lib/codestrap/content/gemremote/template
|
386
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local.erb
|
387
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local/dir/file
|
388
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local/dir/template
|
389
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local/file
|
390
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_local/template
|
391
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote.erb
|
392
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote/dir/file
|
393
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote/dir/template
|
394
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote/file
|
395
|
-
- features/fixtures/client/var/lib/codestrap/content/remote_remote/template
|
396
|
-
- features/fixtures/client/var/lib/codestrap/objects/remote.json
|
397
|
-
- features/fixtures/logging/home/logging/codestrap/bin/stubdirectory/.empty
|
398
|
-
- features/fixtures/logging/home/logging/codestrap/bin/stubnotlink
|
399
|
-
- features/fixtures/logging/home/logging/codestrap/content/.empty
|
400
|
-
- features/fixtures/logging/home/logging/codestrap/objects/.empty
|
401
|
-
- features/fixtures/server/mixed/var/lib/stub/content/address.erb
|
402
|
-
- features/fixtures/server/mixed/var/lib/stub/content/cell.erb
|
403
|
-
- features/fixtures/server/mixed/var/lib/stub/content/email.erb
|
404
|
-
- features/fixtures/server/mixed/var/lib/stub/content/mobile.erb
|
405
|
-
- features/fixtures/server/mixed/var/lib/stub/content/name.erb
|
406
|
-
- features/fixtures/server/mixed/var/lib/stub/content/phone.erb
|
407
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/Modulefile
|
408
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/README
|
409
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/manifests/init.pp
|
410
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/spec/spec_helper.rb
|
411
|
-
- features/fixtures/server/mixed/var/lib/stub/content/puppetmodule/tests/init.pp
|
412
|
-
- features/fixtures/server/mixed/var/lib/stub/objects/contact.json
|
413
|
-
- features/fixtures/server/mixed/var/lib/stub/objects/shadow/contact.json
|
414
|
-
- features/fixtures/strap/projects/etc/.empty
|
415
|
-
- features/fixtures/strap/projects/home/user/dir/bin/.empty
|
416
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/Modulefile
|
417
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/README
|
418
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/manifests/:stub:project.name:/subclass.pp
|
419
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/manifests/init.pp
|
420
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/spec/spec_helper.rb
|
421
|
-
- features/fixtures/strap/projects/home/user/dir/content/puppetmodule/tests/init.pp
|
422
|
-
- features/fixtures/strap/projects/home/user/dir/objects/contact.json
|
423
|
-
- features/fixtures/strap/projects/home/user/dir/objects/shadow/contact.json
|
424
|
-
- features/fixtures/strap/projects/output/.empty
|
425
|
-
- features/fixtures/stub/contact/etc/.empty
|
426
|
-
- features/fixtures/stub/contact/home/user/dir/bin/.empty
|
427
|
-
- features/fixtures/stub/contact/home/user/dir/content/address.erb
|
428
|
-
- features/fixtures/stub/contact/home/user/dir/content/cell.erb
|
429
|
-
- features/fixtures/stub/contact/home/user/dir/content/email.erb
|
430
|
-
- features/fixtures/stub/contact/home/user/dir/content/mobile.erb
|
431
|
-
- features/fixtures/stub/contact/home/user/dir/content/name.erb
|
432
|
-
- features/fixtures/stub/contact/home/user/dir/content/phone.erb
|
433
|
-
- features/fixtures/stub/contact/home/user/dir/objects/contact.json
|
434
|
-
- features/fixtures/stub/contact/home/user/dir/objects/shadow/contact.json
|
435
|
-
- features/fixtures/stub/contact/output/.empty
|
436
|
-
- features/fixtures/stub/date/etc/.empty
|
437
|
-
- features/fixtures/stub/date/home/user/stub/bin/.empty
|
438
|
-
- features/fixtures/stub/date/home/user/stub/content/day.erb
|
439
|
-
- features/fixtures/stub/date/home/user/stub/content/hour.erb
|
440
|
-
- features/fixtures/stub/date/home/user/stub/content/minute.erb
|
441
|
-
- features/fixtures/stub/date/home/user/stub/content/month.erb
|
442
|
-
- features/fixtures/stub/date/home/user/stub/content/second.erb
|
443
|
-
- features/fixtures/stub/date/home/user/stub/content/year.erb
|
444
|
-
- features/fixtures/stub/date/home/user/stub/objects/.empty
|
445
|
-
- features/fixtures/stub/date/output/.empty
|
446
|
-
- features/fixtures/stub/script/etc/.empty
|
447
|
-
- features/fixtures/stub/script/home/user/stub/bin/.empty
|
448
|
-
- features/fixtures/stub/script/home/user/stub/content/credentials.erb
|
449
|
-
- features/fixtures/stub/script/home/user/stub/objects/credentials.rb
|
450
|
-
- features/fixtures/stub/script/output/.empty
|
451
|
-
- features/logging.feature
|
452
|
-
- features/object_scripts.feature
|
453
|
-
- features/server.feature
|
454
|
-
- features/step_definitions/client_steps.rb
|
455
|
-
- features/step_definitions/logging_steps.rb
|
456
|
-
- features/step_definitions/object_scripts_steps.rb
|
457
|
-
- features/step_definitions/server_steps.rb
|
458
|
-
- features/step_definitions/strap_steps.rb
|
459
|
-
- features/step_definitions/stub_option_simple_steps.rb
|
460
|
-
- features/step_definitions/stub_steps.rb
|
461
|
-
- features/strap.feature
|
462
|
-
- features/stub.feature
|
463
|
-
- features/stub_option_simple.feature
|
464
|
-
- features/stub_packages.feature
|
465
|
-
- features/support/env.rb
|
290
|
+
test_files: []
|
466
291
|
has_rdoc:
|