kalipso 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
@@ -0,0 +1,3 @@
1
+ Wed, Jan 26, 2011
2
+ - - - - - - - - -
3
+ - Teeny bugfixes about paths
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/kalipso.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kalipso}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Campbell"]
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  "README.md"
20
20
  ]
21
21
  s.files = [
22
+ "CHANGELOG",
22
23
  "Gemfile",
23
24
  "Gemfile.lock",
24
25
  "LICENSE.txt",
data/lib/kalipso.rb CHANGED
@@ -15,12 +15,11 @@ require 'pathname'
15
15
  require 'kalipso/site'
16
16
 
17
17
  # app
18
- Dir['app/*/*.rb'].each do |file|
18
+ Dir[File.expand_path('app/*/*.rb', __FILE__)].each do |file|
19
19
  require file
20
20
  end
21
21
 
22
- Jaysus::Local.store_dir = "#{ENV['HOME']}/.kalipso"
23
-
22
+ Jaysus::Local.store_dir = File.expand_path("~/.kalipso")
24
23
 
25
24
  token_path = Pathname.new(Jaysus::Local.store_dir + '/token')
26
25
 
data/lib/kalipso/cli.rb CHANGED
@@ -32,9 +32,9 @@ module Kalipso
32
32
  end
33
33
 
34
34
  desc "link", "link a local path to a site"
35
- def link(site, path)
35
+ def link(site, path = nil)
36
36
  site = Site::Local.find_by_name(site)
37
- path = File.expand_path(path)
37
+ path = path.present? ? File.expand_path(path) : Dir.pwd
38
38
  site.update_attributes(:path => path)
39
39
  puts "#{site.name} linked to #{path}"
40
40
  end
@@ -79,9 +79,9 @@ module Kalipso
79
79
  if site.present?
80
80
  puts "uploading #{name} from #{path}"
81
81
  if site.path.present?
82
- puts "uploading #{site.path} to #{site.name}.diddlydum.com"
82
+ puts "uploading #{site.path} to #{site.name}.oncalypso.com"
83
83
  `rsync -arvH #{site.path.gsub(/\/+$/, '')}/ sites@diddlydum.com:/home/sites/#{site.name}`
84
- puts "#{site.path} uploaded to http://#{site.name}.diddlydum.com"
84
+ puts "#{site.path} uploaded to http://#{site.name}.oncalypso.com"
85
85
  else
86
86
  puts "You need to link this site first"
87
87
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kalipso
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Campbell
@@ -166,6 +166,7 @@ extra_rdoc_files:
166
166
  - LICENSE.txt
167
167
  - README.md
168
168
  files:
169
+ - CHANGELOG
169
170
  - Gemfile
170
171
  - Gemfile.lock
171
172
  - LICENSE.txt