mamiya 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 900d91f672af5554eea950816c4e6dd8f24d93e3
4
- data.tar.gz: 72a64125e25bbba31333248aa336ebe7996446cc
3
+ metadata.gz: d0b2fc242166eb187e4fef9fcb5c301ef6c89358
4
+ data.tar.gz: 4bc554b225bf49a0401e8080a453a3ac26970ff9
5
5
  SHA512:
6
- metadata.gz: a0e992317d9e565cc8880e200554917a0561fae6b3e7a42e3c4a9991f4e7501dbc78a361207781add2bdf1232cef46b925df6d84910d91b4e10bf4d31afe8ed2
7
- data.tar.gz: e0bc6292faa73ecb0c630da6fc7738457162d9a7d0b3d4870c8c616a9683879c91bf2a8e8a2078c326e4d36873053b1faf0b38770ff7fe2a67cfa074d5e958d7
6
+ metadata.gz: f7a8c32a8d38efbcf1a7b37c41c7e171dea8868c998ac7a9efc1ac79d1f5f7e517c28382e4bf7c2390ff37058e7f77a363d52369239ea13d4563e03e148c5907
7
+ data.tar.gz: a191a98e200d3f2aa307a7e2cd02849f5d9d32645620d8d2f02c24d543875b2d7cc69a01aa8365b25f567916e10b2820997d7dbdd94e86360e4e4f7b369c663f
data/lib/mamiya/cli.rb CHANGED
@@ -44,6 +44,7 @@ module Mamiya
44
44
  logger.debug line
45
45
  end
46
46
  end
47
+ exit 1
47
48
  end
48
49
  end
49
50
 
@@ -35,8 +35,9 @@ module Mamiya
35
35
  @switched = true
36
36
  script.before_switch(labels)[]
37
37
 
38
- File.unlink script.current_path if script.current_path.symlink?
39
- script.current_path.make_symlink(target.realpath)
38
+ next_path = script.release_path.parent.join(script.current_path.basename)
39
+ next_path.make_symlink(target.realpath)
40
+ FileUtils.mv(next_path, script.current_path)
40
41
  end
41
42
 
42
43
  def release
@@ -1,3 +1,3 @@
1
1
  module Mamiya
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -30,6 +30,7 @@ describe Mamiya::Steps::Switch do
30
30
  release: proc {},
31
31
  after_switch: proc {},
32
32
  current_path: current_path,
33
+ release_path: release_path,
33
34
  )
34
35
  end
35
36
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mamiya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Fukumori (sora_h)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -300,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
300
  version: '0'
301
301
  requirements: []
302
302
  rubyforge_project:
303
- rubygems_version: 2.5.0
303
+ rubygems_version: 2.5.2
304
304
  signing_key:
305
305
  specification_version: 4
306
306
  summary: Fast deploy tool using tarballs and serf