shoot 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -0
- data/lib/shoot/cli.rb +6 -6
- data/lib/shoot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e654429f512894513e21f6f555daaea022f96e1d
|
4
|
+
data.tar.gz: 2b4967b18e60fd46250c472c940e0198ed87f158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 758372ba2e5841877549835594a1ba22b11f780dcb39d71cd8e72b8b0e38ec78b7b045ecdfd68ea8f30b8617b0c5b362f78924db6d2c873628d8325fb29689c7
|
7
|
+
data.tar.gz: 6ac47fa0e07683494fedf8c0567c10005fe8eef97f1d9302e83deaccb0053ddb2d59b9f4895e50a690fee95030b657e7e38a50f48a89ca469f167766d2d3ea4b
|
data/README.md
CHANGED
@@ -111,6 +111,39 @@ To open all screenshots (on a Mac), run:
|
|
111
111
|
|
112
112
|
$ shoot open
|
113
113
|
|
114
|
+
### Interactive mode
|
115
|
+
|
116
|
+
Sometimes running all the commands above becomes annoying. Here's where the interactive mode comes to the rescue. Just run any of the commands below:
|
117
|
+
|
118
|
+
# shoot -i
|
119
|
+
# shoot --interactive
|
120
|
+
# shoot interactive
|
121
|
+
|
122
|
+
And you'll be prompted for actions. You can run things like:
|
123
|
+
|
124
|
+
(interactive mode) # list ie
|
125
|
+
(interactive mode) # activate 12 34 56
|
126
|
+
(interactive mode) # test /my_test_folder
|
127
|
+
(interactive mode) # open
|
128
|
+
(interactive mode) # deactivate 12
|
129
|
+
(interactive mode) # update
|
130
|
+
|
131
|
+
You got the idea.
|
132
|
+
|
133
|
+
### List of commands
|
134
|
+
|
135
|
+
shoot activate IDs # Activate platforms, based on IDs
|
136
|
+
shoot active # List active platforms.
|
137
|
+
shoot deactivate IDs # Deactivate platforms, based on IDs
|
138
|
+
shoot deactivate_all # Deactivate all the platforms
|
139
|
+
shoot help [COMMAND] # Describe available commands or one specific
|
140
|
+
shoot interactive, --interactive, -i # Interactive mode
|
141
|
+
shoot list [FILTER] # List all platforms. Optionally passing a filter
|
142
|
+
shoot open # Opens all screenshots taken
|
143
|
+
shoot scenario PATH # Runs the given scenario or all files in a directory on all active platforms
|
144
|
+
shoot test PATH # Runs the given scenario or all files in a directory on a local phantomjs
|
145
|
+
shoot update # Update browser list (WARNING: will override active browsers)
|
146
|
+
shoot version, --version, -v # Shoot version
|
114
147
|
|
115
148
|
## Contributing
|
116
149
|
|
data/lib/shoot/cli.rb
CHANGED
@@ -15,7 +15,7 @@ module Shoot
|
|
15
15
|
puts Shoot::VERSION
|
16
16
|
end
|
17
17
|
|
18
|
-
desc 'interactive, --interactive, -i', '
|
18
|
+
desc 'interactive, --interactive, -i', 'Interactive mode'
|
19
19
|
def interactive
|
20
20
|
@exit = false
|
21
21
|
|
@@ -49,7 +49,7 @@ module Shoot
|
|
49
49
|
open_all_screenshots
|
50
50
|
end
|
51
51
|
|
52
|
-
desc 'list', 'List all platforms. Optionally
|
52
|
+
desc 'list [FILTER]', 'List all platforms. Optionally passing a filter'
|
53
53
|
def list(filter = nil)
|
54
54
|
table json.select { |p| p.inspect =~ /#{filter}/i }
|
55
55
|
end
|
@@ -59,7 +59,7 @@ module Shoot
|
|
59
59
|
table _active
|
60
60
|
end
|
61
61
|
|
62
|
-
desc 'scenario', 'Runs the given scenario or all files in a directory on all active platforms'
|
62
|
+
desc 'scenario PATH', 'Runs the given scenario or all files in a directory on all active platforms'
|
63
63
|
def scenario(path)
|
64
64
|
files = File.directory?(path) ? Dir.glob("#{path}/*.rb") : [path]
|
65
65
|
|
@@ -73,7 +73,7 @@ module Shoot
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
desc 'test', 'Runs the given scenario or all files in a directory on a local phantomjs'
|
76
|
+
desc 'test PATH', 'Runs the given scenario or all files in a directory on a local phantomjs'
|
77
77
|
def test(path)
|
78
78
|
files = File.directory?(path) ? Dir.glob("#{path}/*.rb") : [path]
|
79
79
|
elapsed_time do
|
@@ -82,12 +82,12 @@ module Shoot
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
-
desc 'activate
|
85
|
+
desc 'activate IDs', 'Activate platforms, based on IDs'
|
86
86
|
def activate(*ids)
|
87
87
|
_activate(ids)
|
88
88
|
end
|
89
89
|
|
90
|
-
desc 'deactivate', 'Deactivate platforms, based on IDs'
|
90
|
+
desc 'deactivate IDs', 'Deactivate platforms, based on IDs'
|
91
91
|
def deactivate(*ids)
|
92
92
|
_deactivate(ids)
|
93
93
|
end
|
data/lib/shoot/version.rb
CHANGED