logs-cf-plugin 0.0.44.pre → 0.0.45.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +2 -49
  2. data/lib/logs-cf-plugin/plugin.rb +3 -37
  3. metadata +5 -51
data/README.md CHANGED
@@ -1,50 +1,3 @@
1
- # Logs-Cf-Plugin [![Build Status](https://travis-ci.org/cloudfoundry/logs-cf-plugin.png?branch=master)](https://travis-ci.org/cloudfoundry/logs-cf-plugin)
2
-
3
- Plugin to cf command to add streaming application logs.
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'logs-cf-plugin'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install logs-cf-plugin
18
-
19
- ## Usage
20
-
21
-
22
- After installing you can run cf logs and see your application's logs stream to the console.
23
-
24
- ## Contributing
25
-
26
- The Cloud Foundry team uses GitHub and accepts contributions via [pull request](https://help.github.com/articles/using-pull-requests)
27
-
28
- Follow these steps to make a contribution to any of our open source repositories:
29
-
30
- 1. Complete our CLA Agreement for [individuals](http://www.cloudfoundry.org/individualcontribution.pdf) or [corporations](http://www.cloudfoundry.org/corpcontribution.pdf)
31
- 1. Set your name and email
32
-
33
- git config --global user.name "Firstname Lastname"
34
- git config --global user.email "your_email@youremail.com"
35
-
36
- 1. Fork the repo
37
- 1. Make your changes on a topic branch, commit, and push to github and open a pull request.
38
-
39
- Once your commits are approved by Travis CI and reviewed by the core team, they will be merged.
40
-
41
- #### Checkout
42
-
43
- git clone git@github.com:cloudfoundry/logs-cf-plugin.git
44
- cd logs-cf-plugin/
45
- bundle
46
-
47
- #### Running tests
48
-
49
- rake
1
+ # Deprecated: Logs-Cf-Plugin
50
2
 
3
+ This command is deprecated. Please use the new [CLI](https://github.com/cloudfoundry/cli).
@@ -1,49 +1,15 @@
1
1
  require 'cf'
2
- require 'eventmachine'
3
- require 'faye/websocket'
4
- require 'loggregator_messages'
5
- require 'uri'
6
2
 
7
3
  module LogsCfPlugin
8
- require 'logs-cf-plugin/message_writer'
9
- require 'logs-cf-plugin/client_config'
10
- require 'logs-cf-plugin/tailing_logs_client'
11
- require 'logs-cf-plugin/recent_logs_client'
12
-
13
4
  class Plugin < CF::CLI
14
- include LoginRequirements
15
- include MessageWriter
16
-
17
- desc "Tail or dump logs for CF applications"
5
+ desc "DEPRECATED: Tail or dump logs for CF applications"
18
6
  group :apps
19
- input :app, :desc => "App to tail logs from", :argument => :optional, :from_given => by_name(:app)
20
- input :recent, :type => :boolean, :desc => "Dump recent logs instead of tailing", :default => false
21
7
 
22
8
  def logs
23
- client.current_organization.name # resolve org name so CC will validate AuthToken
24
-
25
- unless input[:app]
26
- Mothership::Help.command_help(@@commands[:logs])
27
- fail "Please provide an application to log."
28
- end
29
- port = input[:recent] ? nil : 4443
30
- client_config = ClientConfig.new(loggregator_host, port, client.token.auth_header, STDOUT, input[:trace], use_ssl)
31
-
32
- client_clazz = input[:recent] ? RecentLogsClient : TailingLogsClient
33
- client_clazz.new(client_config).logs_for(input[:app])
9
+ puts "This command is deprecated. Please use the new CLI (https://github.com/cloudfoundry/cli)"
10
+ exit 1
34
11
  end
35
12
 
36
13
  ::ManifestsPlugin.default_to_app_from_manifest(:logs, false)
37
-
38
- private
39
-
40
- def loggregator_host
41
- target_base = client.target.sub(/^https?:\/\/([^\.]+\.)?(.+)\/?/, '\2')
42
- "loggregator.#{target_base}"
43
- end
44
-
45
- def use_ssl
46
- client.target.start_with?('https')
47
- end
48
14
  end
49
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logs-cf-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44.pre
4
+ version: 0.0.45.pre
5
5
  prerelease: 7
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-09-20 00:00:00.000000000 Z
12
+ date: 2013-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cf
@@ -27,54 +27,6 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '5.0'
30
- - !ruby/object:Gem::Dependency
31
- name: faye-websocket
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: 0.6.1
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 0.6.1
46
- - !ruby/object:Gem::Dependency
47
- name: beefcake
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 0.3.7
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 0.3.7
62
- - !ruby/object:Gem::Dependency
63
- name: loggregator_messages
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 0.1.0.pre
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 0.1.0.pre
78
30
  description: CF command line tool to retrieve recent and tail CF Application Logs
79
31
  email:
80
32
  - vcap-dev@googlegroups.com
@@ -91,7 +43,9 @@ files:
91
43
  homepage: http://github.com/cloudfoundry/logs-cf-plugin
92
44
  licenses:
93
45
  - Apache 2.0
94
- post_install_message:
46
+ post_install_message: ! "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\nThe
47
+ logs-cf-plugin gem is deprecated. Please use the new CLI\nto access application
48
+ logging.\n\n URL: https://github.com/cloudfoundry/cli\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\n"
95
49
  rdoc_options: []
96
50
  require_paths:
97
51
  - lib