guard-jetty 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/lib/guard/jetty.rb +61 -0
- data/lib/guard/jetty/templates/Guardfile +4 -0
- data/lib/guard/jetty/version.rb +5 -0
- metadata +147 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MDZkYzg5MmYzZmFkYWU5YjgzZWZhOWRjOTdhZGJiZDRiMDY5NGM3OA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NGNkN2NkYzU5NDQxMmRiZWU2MWI5MTAyODkxZjI3MWNjNjg4ZmI4NA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YmZmZTY4OTk2YzMzYjU3YWU3YTY0YzJmZWQyZTg0M2YxZGQyY2ZmMDEyYWNm
|
10
|
+
YTY3NjdmZWRhNzk3ZGU0MGI4ZjkzNDkwOTA2N2FhMzE1MGU4ZTM3MDU2NGFi
|
11
|
+
OGMyOGM3NjUxM2M1MWJkNjY2OTlmNzE2ZDUwNjJiZjFlZDM0NDQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MmE1ODVlODk4NjUyYjkxMjFkM2Y4NGY1ODdhYTU0N2QwMGFjOTgzZjE3ZTFh
|
14
|
+
NzQ1NmIzMDBmOTZjM2IwMjVmYjNhYjM5YjFmM2IxZjMxNDMxNjJiZjc3NzRk
|
15
|
+
MzgzOWQ0ODRjMTk4NGEzMjU3Y2FlOTRhZTdmYjE4NDk0NzRlNzk=
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Jaron Kennel
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Guard::Jetty
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'guard-jetty'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install guard-jetty
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/lib/guard/jetty.rb
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'guard'
|
2
|
+
require 'guard/guard'
|
3
|
+
require 'jettywrapper'
|
4
|
+
|
5
|
+
module Guard
|
6
|
+
class Jetty < Guard
|
7
|
+
def jetty_config
|
8
|
+
@jetty_config ||= Jettywrapper.load_config.merge(options)
|
9
|
+
end
|
10
|
+
|
11
|
+
def start_jetty
|
12
|
+
Jettywrapper.start(jetty_config)
|
13
|
+
end
|
14
|
+
|
15
|
+
def stop_jetty
|
16
|
+
Jettywrapper.stop(jetty_config)
|
17
|
+
end
|
18
|
+
|
19
|
+
def restart_jetty
|
20
|
+
stop_jetty
|
21
|
+
start_jetty
|
22
|
+
end
|
23
|
+
|
24
|
+
# Called once when Guard starts. Please override initialize method to init stuff.
|
25
|
+
#
|
26
|
+
# @raise [:task_has_failed] when start has failed
|
27
|
+
# @return [Object] the task result
|
28
|
+
#
|
29
|
+
def start
|
30
|
+
start_jetty
|
31
|
+
end
|
32
|
+
|
33
|
+
# Called when `stop|quit|exit|s|q|e + enter` is pressed (when Guard quits).
|
34
|
+
#
|
35
|
+
# @raise [:task_has_failed] when stop has failed
|
36
|
+
# @return [Object] the task result
|
37
|
+
#
|
38
|
+
def stop
|
39
|
+
stop_jetty
|
40
|
+
end
|
41
|
+
|
42
|
+
# Called when `reload|r|z + enter` is pressed.
|
43
|
+
# This method should be mainly used for "reload" (really!) actions like reloading passenger/spork/bundler/...
|
44
|
+
#
|
45
|
+
# @raise [:task_has_failed] when reload has failed
|
46
|
+
# @return [Object] the task result
|
47
|
+
#
|
48
|
+
def reload
|
49
|
+
restart_jetty
|
50
|
+
end
|
51
|
+
|
52
|
+
# Default behaviour on file(s) changes that the Guard plugin watches.
|
53
|
+
# @param [Array<String>] paths the changes files or paths
|
54
|
+
# @raise [:task_has_failed] when run_on_change has failed
|
55
|
+
# @return [Object] the task result
|
56
|
+
#
|
57
|
+
def run_on_changes(paths)
|
58
|
+
restart_jetty
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
metadata
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: guard-jetty
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jaron Kennel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: guard
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jettywrapper
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard-bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.14.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.14.1
|
111
|
+
description: Guard::Jetty automatically starts/restarts your jetty server when needed.
|
112
|
+
email:
|
113
|
+
- jaronkk@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- lib/guard/jetty/templates/Guardfile
|
119
|
+
- lib/guard/jetty/version.rb
|
120
|
+
- lib/guard/jetty.rb
|
121
|
+
- LICENSE.txt
|
122
|
+
- README.md
|
123
|
+
homepage: ''
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata: {}
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ! '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ! '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
requirements: []
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 2.1.5
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: Guard gem for Jetty
|
147
|
+
test_files: []
|