traquitana 0.1.3 → 0.1.4
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
- checksums.yaml.gz.sig +4 -1
- data.tar.gz.sig +0 -0
- data/README.md +36 -21
- data/config/custom.yml +10 -25
- data/lib/traquitana/version.rb +1 -1
- data/traq/config.yml +5 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 037a1c511141d8fac9fba3ebfe53bd3ef3a8058ecb8e8fe0ba1d14e4dbf1f303
|
4
|
+
data.tar.gz: 28cb01214ddd78ad159bdf147eb26d56a90892156c758484a35b5599f22d8b36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47484c4e28c612666ea071aed2ec7fe5f563105ccefe587cae69c4039caead7cd42374d72425fae23a0fee0c3694d0ba4ade3e19f43d8b7953fb2ed5c02f0b0c
|
7
|
+
data.tar.gz: 5cc82ecc7586a75a09cdfb47fb31cf4d100705d442f3b142a29146570f7ccf6cf75a455edd38484bb53fc3258c7ea9905308ef11a6650f05576392161e4542ca
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,4 @@
|
|
1
|
-
|
1
|
+
����XQ��L��qf��c�T8"]�������
|
2
|
+
���VL
|
3
|
+
O%2!at�d�m?�#x;鬡�U�
|
4
|
+
���Jrrdl�����)6��G��[&E��62��&�,-�0�c���m�
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -1,16 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
[](https://rubygems.org/gems/traquitana)
|
2
|
+
[](https://rubygems.org/gems/traquitana)
|
3
|
+
[](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
|
4
4
|
|
5
5
|
# Traquitana
|
6
6
|
|
7
7
|
This project is a collection of scripts I used before met Capistrano and the
|
8
|
-
other tools to do that.
|
9
|
-
|
10
|
-
|
11
|
-
default libs on Ruby like net/ssh and net/scp, and rubyzip to zip all the files
|
12
|
-
and try to make
|
13
|
-
things faster.
|
8
|
+
other tools to do that. It send some files from your local Rails app directory
|
9
|
+
to a production remote server, using some default libs on Ruby like net/ssh and
|
10
|
+
net/scp, and rubyzip to zip all the files and try to make things faster.
|
14
11
|
|
15
12
|
It was made to run on GNU/Linux, but should work on similar systems.
|
16
13
|
|
@@ -18,15 +15,21 @@ It was made to run on GNU/Linux, but should work on similar systems.
|
|
18
15
|
|
19
16
|
Add this line to your application's Gemfile:
|
20
17
|
|
21
|
-
|
18
|
+
```
|
19
|
+
gem 'traquitana'
|
20
|
+
```
|
22
21
|
|
23
22
|
And then execute:
|
24
23
|
|
25
|
-
|
24
|
+
```
|
25
|
+
$ bundle
|
26
|
+
```
|
26
27
|
|
27
28
|
Or install it yourself as:
|
28
29
|
|
29
|
-
|
30
|
+
```
|
31
|
+
$ gem install traquitana
|
32
|
+
```
|
30
33
|
|
31
34
|
## Usage
|
32
35
|
|
@@ -44,8 +47,10 @@ Or install it yourself as:
|
|
44
47
|
|
45
48
|
On the list can have two elements by row, like:
|
46
49
|
|
47
|
-
|
48
|
-
|
50
|
+
```
|
51
|
+
- - public/images/**/*
|
52
|
+
- public/images/uploads/**/*
|
53
|
+
```
|
49
54
|
|
50
55
|
On this example, all below public/images will be send BUT ignoring what is on
|
51
56
|
public/images/uploads. This is a way to make sure you'll not overwrite some
|
@@ -60,7 +65,7 @@ Or install it yourself as:
|
|
60
65
|
specify any tags. Take a look on the custom.yml file provided and use
|
61
66
|
-t or --target <target>.
|
62
67
|
|
63
|
-
- Run traq (just type traq).
|
68
|
+
- Run traq (just type `traq`).
|
64
69
|
- It will search for changed files
|
65
70
|
- Will create a list with the file names found
|
66
71
|
- Will zíp the files.
|
@@ -85,17 +90,27 @@ break something.
|
|
85
90
|
|
86
91
|
There are some command line options:
|
87
92
|
|
88
|
-
*
|
89
|
-
*
|
90
|
-
*
|
91
|
-
*
|
92
|
-
*
|
93
|
+
* `-f` or `--file <file>` - specify the config file path
|
94
|
+
* `-v` or `--version` - show current version
|
95
|
+
* `-c` or `--cleanup` - clean old versions backups stored on the remote host
|
96
|
+
* `-v` or `--verbose` - be verbose while running
|
97
|
+
* `-t` or `--target <target>` - specify which target will be loaded on the config file
|
98
|
+
|
99
|
+
## Drawbacks
|
100
|
+
|
101
|
+
As we're sending the local files to the server, if you deleted some file from
|
102
|
+
your local repository, **it will not be deleted from your server**, so, you'll
|
103
|
+
need to take care of this by yourself. I was inclined to check for the deleted
|
104
|
+
files on the file list sent to the server, comparing with the local files there,
|
105
|
+
and then delete the files, but I think file deletion could be a little more
|
106
|
+
invasive than I'd would like about how this gem works. Maybe on future I can
|
107
|
+
change my mind.
|
93
108
|
|
94
109
|
## Contributing
|
95
110
|
|
96
111
|
1. Fork it
|
97
112
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
98
|
-
3. Test it! Run `$ rake test`. You need `minitest` and `minitest-focus`.
|
113
|
+
3. Test it! Run `$ rake test`. You'll need `minitest` and `minitest-focus`.
|
99
114
|
4. Commit your changes (`git commit -am 'Added some feature'`)
|
100
115
|
5. Push to the branch (`git push origin my-new-feature`)
|
101
116
|
6. Create new Pull Request
|
data/config/custom.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
#
|
2
|
-
default:
|
1
|
+
# This is the default configuration, created by the traq setup command
|
2
|
+
default: &default
|
3
3
|
directory: /tmp/traq_test
|
4
4
|
user: taq
|
5
5
|
list:
|
@@ -25,28 +25,13 @@ default:
|
|
25
25
|
host: localhost
|
26
26
|
server: passenger
|
27
27
|
shell: bash -l -c
|
28
|
+
|
29
|
+
# This is a custom configuration to be used wit -t or --target option.
|
30
|
+
# It inherits all the default configs, just changing the directory.
|
31
|
+
# It can be used like:
|
32
|
+
# $ traq -t custom
|
33
|
+
# or
|
34
|
+
# $ traq --target custom
|
28
35
|
custom:
|
36
|
+
<<: *default
|
29
37
|
directory: /tmp/traq_test_custom
|
30
|
-
user: taq
|
31
|
-
list:
|
32
|
-
- Rakefile
|
33
|
-
- config.ru
|
34
|
-
- Gemfile
|
35
|
-
- - config/application.rb
|
36
|
-
- - config/environment.rb
|
37
|
-
- - config/initializers/**/*
|
38
|
-
- - config/environments/production.rb
|
39
|
-
- - config/locales/**/*
|
40
|
-
- - config/routes.rb
|
41
|
-
- - config/storage.yml
|
42
|
-
- - app/**/*
|
43
|
-
- - db/migrate/**/*
|
44
|
-
- - public/javascripts/**/*
|
45
|
-
- - public/stylesheets/**/*
|
46
|
-
- - lib/**/*
|
47
|
-
- - bin/**/*
|
48
|
-
- - public/images/**/*
|
49
|
-
- public/images/uploads/**/*
|
50
|
-
password: fill your password here
|
51
|
-
host: localhost
|
52
|
-
shell: bash -l -c
|
data/lib/traquitana/version.rb
CHANGED
data/traq/config.yml
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
- Rakefile
|
7
7
|
- config.ru
|
8
8
|
- Gemfile
|
9
|
+
- package.json
|
10
|
+
- postcss.config.js
|
9
11
|
- - config/application.rb
|
10
12
|
- - config/environment.rb
|
11
13
|
- - config/initializers/**/*
|
@@ -13,6 +15,9 @@
|
|
13
15
|
- - config/locales/**/*
|
14
16
|
- - config/routes.rb
|
15
17
|
- - config/storage.yml
|
18
|
+
- - config/webpacker.yml
|
19
|
+
- - config/webpack/environment.js
|
20
|
+
- - config/webpack/production.js
|
16
21
|
- - app/**/*
|
17
22
|
- - db/migrate/**/*
|
18
23
|
- - public/javascripts/**/*
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traquitana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eustaquio Rangel
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
uek3m7n2XoRODoAGEm3apnmP8WWMEmI0tXdsvDBwoNVXEMkFnxD+RIMQPW22r3ZL
|
36
36
|
waOiThAR0oxaTQ==
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: highline
|
metadata.gz.sig
CHANGED
Binary file
|