middleman-deploy 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/middleman-deploy/commands.rb +8 -4
- data/lib/middleman-deploy/pkg-info.rb +1 -1
- data/middleman-deploy.gemspec +2 -2
- metadata +5 -5
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -73,11 +73,15 @@ end
|
|
73
73
|
EOF
|
74
74
|
end
|
75
75
|
|
76
|
+
def inst
|
77
|
+
::Middleman::Application.server.inst
|
78
|
+
end
|
79
|
+
|
76
80
|
def deploy_options
|
77
81
|
options = nil
|
78
82
|
|
79
83
|
begin
|
80
|
-
options =
|
84
|
+
options = inst.options
|
81
85
|
rescue
|
82
86
|
print_usage_and_die "You need to activate the deploy extension in config.rb."
|
83
87
|
end
|
@@ -109,7 +113,7 @@ EOF
|
|
109
113
|
|
110
114
|
puts "## Deploying via rsync to #{user}@#{host}:#{path} port=#{port}"
|
111
115
|
|
112
|
-
command = "rsync -avze '" + "ssh -p #{port}" + "'
|
116
|
+
command = "rsync -avze '" + "ssh -p #{port}" + "' #{self.inst.build_dir}/ #{user}@#{host}:#{path}"
|
113
117
|
|
114
118
|
if options.has_key? "clean"
|
115
119
|
clean = options.clean
|
@@ -141,7 +145,7 @@ EOF
|
|
141
145
|
exit
|
142
146
|
end
|
143
147
|
|
144
|
-
Dir.chdir(
|
148
|
+
Dir.chdir(self.inst.build_dir) do
|
145
149
|
unless File.exists?('.git')
|
146
150
|
`git init`
|
147
151
|
`git remote add origin #{remote}`
|
@@ -182,7 +186,7 @@ EOF
|
|
182
186
|
ftp.chdir(path)
|
183
187
|
ftp.passive = true
|
184
188
|
|
185
|
-
Dir.chdir(
|
189
|
+
Dir.chdir(self.inst.build_dir) do
|
186
190
|
files = Dir.glob('**/*', File::FNM_DOTMATCH)
|
187
191
|
files.reject { |a| a =~ Regexp.new('\.$') }.each do |f|
|
188
192
|
if File.directory?(f)
|
data/middleman-deploy.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["Tom Vaughan"]
|
10
10
|
s.email = ["thomas.david.vaughan@gmail.com"]
|
11
11
|
s.homepage = "http://tvaughan.github.com/middleman-deploy/"
|
12
|
-
s.summary = %q{Deploy a middleman built site over rsync or
|
13
|
-
s.description = %q{Deploy a middleman built site over rsync or
|
12
|
+
s.summary = %q{Deploy a middleman built site over rsync, ftp, or git (e.g. gh-pages on github).}
|
13
|
+
s.description = %q{Deploy a middleman built site over rsync, ftp, or git (e.g. gh-pages on github).}
|
14
14
|
|
15
15
|
s.files = `git ls-files`.split("\n")
|
16
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|
@@ -43,8 +43,8 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
-
description: Deploy a middleman built site over rsync or
|
47
|
-
github).
|
46
|
+
description: Deploy a middleman built site over rsync, ftp, or git (e.g. gh-pages
|
47
|
+
on github).
|
48
48
|
email:
|
49
49
|
- thomas.david.vaughan@gmail.com
|
50
50
|
executables: []
|
@@ -87,6 +87,6 @@ rubyforge_project:
|
|
87
87
|
rubygems_version: 1.8.23
|
88
88
|
signing_key:
|
89
89
|
specification_version: 3
|
90
|
-
summary: Deploy a middleman built site over rsync or
|
90
|
+
summary: Deploy a middleman built site over rsync, ftp, or git (e.g. gh-pages on github).
|
91
91
|
test_files: []
|
92
92
|
has_rdoc:
|