itamae-mitsurin 0.22 → 0.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6213c7531a28748ecf73082e4e03679162788a60
4
- data.tar.gz: f5b5958c56e5d7acb761c0b96ee1ae8d9cc0eece
3
+ metadata.gz: b3849e8f03df3239958f48d33694be845ae244c1
4
+ data.tar.gz: 853598ce929d2bcef125efbaa954983b0d08ae60
5
5
  SHA512:
6
- metadata.gz: 24b28cdb231ef0861b4ad0f216976a8fbfcb48b3242302e91d825d1fae44a32935da9ff9c3499678894623f59660deb7cdee2e1511855071dff01c078c51139a
7
- data.tar.gz: a0c683c7ba98520731f96908e3f0fb9bf5a525c66649168bb7817632d079c5d78676f8fac5a664a26af62f3ee5cc9a6f6f06c4895c8af6db96a9d920d27eb45b
6
+ metadata.gz: 926a3e4d8d0555d9d27d61ba5afde41b78ef85498c49c40dc6f97c34719e0306f39c41b5f48f1b62beaf633c1c1e069ab971526ded0dc27d76144fd059bfa438
7
+ data.tar.gz: 6c44f688502a6183a9a9072230921f2590d504c5afc971ee8056c9e48b05f08412660de913b4d372ab83ab89c93210438c19491b24c103b1f510b8652c7a1a27
@@ -15,6 +15,8 @@ module ItamaeMitsurin
15
15
  private
16
16
 
17
17
  def open_file
18
+ logs_path = @options.values.join
19
+ @options={"path" => "#{logs_path + '.' + Time.now.strftime("%Y%m%d")}"}
18
20
  @f = open(@options.fetch('path'), 'a')
19
21
  end
20
22
  end
@@ -11,7 +11,7 @@ module ItamaeMitsurin
11
11
 
12
12
  desc "version", "Print version"
13
13
  def version
14
- puts "shikomi(itamae-mitsurin) v#{ItamaeMitsurin::VERSION}"
14
+ puts "manaita(itamae-mitsurin) v#{ItamaeMitsurin::VERSION}"
15
15
  end
16
16
 
17
17
  desc "init", "Create a new project"
@@ -46,7 +46,7 @@ module ItamaeMitsurin
46
46
  private
47
47
  def validate_create_target!(command, target)
48
48
  unless CREATE_TARGETS.include?(target)
49
- msg = %Q!ERROR: "shikomi #{command}" was called with "#{target}" !
49
+ msg = %Q!ERROR: "manaita #{command}" was called with "#{target}" !
50
50
  msg << "but expected to be in #{CREATE_TARGETS.inspect}"
51
51
  fail InvocationError, msg
52
52
  end
@@ -0,0 +1,8 @@
1
+ {
2
+ "handlers": [
3
+ {
4
+ "type": "json",
5
+ "path": "logs/itamae.log"
6
+ }
7
+ ]
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "handlers": [
3
+ {
4
+ "type": "json",
5
+ "path": "logs/itamae-with-git.log"
6
+ }
7
+ ]
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "handlers": [
3
+ {
4
+ "type": "json",
5
+ "path": "logs/local.log"
6
+ }
7
+ ]
8
+ }
@@ -105,6 +105,7 @@ module ItamaeMitsurin
105
105
  command << " --ask-password" unless ssh_password.nil?
106
106
  command << " --dry-run" if ENV['dry-run'] == "true"
107
107
  command << " -l debug" if ENV['debug'] == "true"
108
+ command << " -c logs/itamae_task.config"
108
109
 
109
110
  # recipe load to_command
110
111
  command_recipe = []
@@ -122,6 +122,7 @@ module ItamaeMitsurin
122
122
  command << " --ask-password" unless ssh_password.nil?
123
123
  command << " --dry-run" if ENV['dry-run'] == "true"
124
124
  command << " -l debug" if ENV['debug'] == "true"
125
+ command << " -c logs/itamae_with_git_task.config"
125
126
 
126
127
  # recipe load to_command
127
128
  command_recipe = []
@@ -100,6 +100,7 @@ module ItamaeMitsurin
100
100
  command << " --shell=bash"
101
101
  command << " --dry-run" if ENV['dry-run'] == "true"
102
102
  command << " -l debug" if ENV['debug'] == "true"
103
+ command << " -c logs/local_task.config"
103
104
 
104
105
  # recipe load to_command
105
106
  command_recipe = []
@@ -78,6 +78,10 @@ module ItamaeMitsurin
78
78
  def hl
79
79
  HighLine.new
80
80
  end
81
+
82
+ def handler_logger
83
+ default = {"handlers"=>[{"type"=>"json", "path"=>"itamae-log.json"}]}
84
+ end
81
85
  end
82
86
 
83
87
  end
@@ -1 +1 @@
1
- 0.22
1
+ 0.23
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-mitsurin
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.22'
4
+ version: '0.23'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akihiro Kamiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -311,6 +311,9 @@ files:
311
311
  - lib/itamae-mitsurin/mitsurin/creators/templates/project/environments/nothing.json
312
312
  - lib/itamae-mitsurin/mitsurin/creators/templates/project/environments/sample.json
313
313
  - lib/itamae-mitsurin/mitsurin/creators/templates/project/keys/.keep
314
+ - lib/itamae-mitsurin/mitsurin/creators/templates/project/logs/config/itamae_task.config
315
+ - lib/itamae-mitsurin/mitsurin/creators/templates/project/logs/config/itamae_with_git_task.config
316
+ - lib/itamae-mitsurin/mitsurin/creators/templates/project/logs/config/local_task.config
314
317
  - lib/itamae-mitsurin/mitsurin/creators/templates/project/nodes/.keep
315
318
  - lib/itamae-mitsurin/mitsurin/creators/templates/project/nodes/sample01.json
316
319
  - lib/itamae-mitsurin/mitsurin/creators/templates/project/roles/.keep