module SmartlingRails
Copyright 2015 CareerBuilder, LLC Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2015 CareerBuilder, LLC Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2015 CareerBuilder, LLC Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2015 CareerBuilder, LLC Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2015 CareerBuilder, LLC Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constants
- VERSION
Public Class Methods
# File lib/smartling_rails.rb, line 25 def self.api_key configuration.api_key end
# File lib/smartling_rails.rb, line 21 def self.configuration @configuration ||= SmartlingRails::Config.new end
# File lib/smartling_rails.rb, line 17 def self.configure yield configuration end
# File lib/smartling_rails.rb, line 33 def self.locales configuration.locales end
def self.command_aliases
{ "s" => "status", "g" => "get", "p" => "put", "h" => "--help" }
end
# File lib/smartling_rails/helpers/localizer_helpers.rb, line 21 def self.print_msg(msg, padding = false) puts if padding puts msg end
# File lib/smartling_rails.rb, line 37 def self.processor @processor ||= SmartlingRails::SmartlingProcessor.new end
# File lib/smartling_rails.rb, line 29 def self.project_id configuration.project_id end