Giter Club home page Giter Club logo

jumpcloud-ruby-gem's People

Contributors

jpvajda avatar rbachman avatar tophermarie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jumpcloud-ruby-gem's Issues

The status of this repo

Hi! Thanks for the decent service.

I'd like to clarify what it the current state of this repo and whether it is still supported. I see that it still operates on Tags which are currently phasing out. Also the repo has opened PRs and issues from 2015, which looks a bit odd.

Could you provide us with further plans on this repo and what alternatives you would recommend to use?

missing return code checking & response

When using the following script:

#!/usr/local/bin/ruby

require 'rubygems'
require 'base64'
require 'jumpcloud'

tags = %w(group2,group1)

JumpCloud.set_system_tags(*tags)

It fails, but there is no logging of what,why or even a response code returned. It would really help automation if these two items existed.

JSON parse exception

Hi,

When calling
def self.get_system_data()
using a non-existing system_key, the resulting message is empty apparently.

JSON parse then crashes:

/usr/share/ruby/gems/2.0/gems/json-1.8.2/lib/json/common.rb:155:in initialize': A JSON text must at least contain two octets! (JSON::ParserError) from /usr/share/ruby/gems/2.0/gems/json-1.8.2/lib/json/common.rb:155:innew'
from /usr/share/ruby/gems/2.0/gems/json-1.8.2/lib/json/common.rb:155:in parse' from /usr/local/share/ruby/gems/2.0/gems/jumpcloud-0.4.0/lib/jumpcloud.rb:88:inget_system_data'
from /usr/local/share/ruby/gems/2.0/gems/jumpcloud-0.4.0/lib/jumpcloud.rb:48:in set_system_name' from ./jumpcloud-settags:3:in

'

You should return an error saying that the system_key doesn't exists instead.

Thanks
nicolas

Hardcoded Install Directory

Due to the fact that the install directory is hard coded we are unable to use this Gem on windows. Looking at the code it seems that all that would be needed is to add the ability to change the install directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.