lipsiahosting 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/lipsiahosting +6 -5
- metadata +4 -3
data/bin/lipsiahosting
CHANGED
@@ -10,18 +10,19 @@ cmd.add_command(CmdParse::VersionCommand.new)
|
|
10
10
|
|
11
11
|
# lipsiahosting init
|
12
12
|
init = CmdParse::Command.new("init", false)
|
13
|
-
init.short_desc = "Init a new repository for the given user, ex: lipsiahosting init d.dagostino
|
13
|
+
init.short_desc = "Init a new repository for the given user, ex: lipsiahosting init -u d.dagostino -s server1"
|
14
14
|
init.options = CmdParse::OptionParserWrapper.new do |opt|
|
15
|
+
opt.on( '-u', '--user USER', 'Set your lipsiahosting user ex -u d.dagostino' ) { |value| $user = value }
|
16
|
+
opt.on( '-s', '--server USER', 'Set your lipsiahosting server ex -s server1' ) { |value| $server = value }
|
15
17
|
opt.on( '-i', '--ignore DIRECTORIES', 'Set folder/file to ignore split it by "," ex: "some/folder/*,another/folder/**/*"' ) { |value| $ignores = value }
|
16
18
|
end
|
17
19
|
init.set_execution_block do |args|
|
18
|
-
user
|
19
|
-
if !user
|
20
|
+
if !$user || !$server
|
20
21
|
init.show_help
|
21
22
|
exit 1
|
22
23
|
end
|
23
24
|
ignores = $ignores.split(",") rescue []
|
24
|
-
puts "-> Your username is: #{user}"
|
25
|
+
puts "-> Your username is: #{$user}"
|
25
26
|
puts "Removing *.svn folders"
|
26
27
|
system "find . -name .svn -print0 | xargs -0 rm -rf"
|
27
28
|
puts "Removing *.git folders"
|
@@ -51,7 +52,7 @@ init.set_execution_block do |args|
|
|
51
52
|
puts "Committing application locally"
|
52
53
|
system "git add *"
|
53
54
|
system 'git commit -a -m "initial import of site" > /dev/null'
|
54
|
-
system "git remote add origin git
|
55
|
+
system "git remote add origin git@#{$server}.lipsiasoft.com:#{$user}/#{project}.git"
|
55
56
|
puts "Pushing application to the remote server. The name of the branch is:"
|
56
57
|
system "git remote"
|
57
58
|
system "git push origin master"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lipsiahosting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davide D'Agostino
|
@@ -9,11 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-11 00:00:00 +02:00
|
13
13
|
default_executable: lipsiahosting
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cmdparse
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
@@ -55,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
56
|
requirements: []
|
56
57
|
|
57
58
|
rubyforge_project:
|
58
|
-
rubygems_version: 1.
|
59
|
+
rubygems_version: 1.2.0
|
59
60
|
signing_key:
|
60
61
|
specification_version: 2
|
61
62
|
summary: The Lipsia Hosting task library
|