Module: AstroSubframeOrganizer
- Defined in:
- lib/astro_subframe_organizer.rb,
lib/astro_subframe_organizer/config.rb,
lib/astro_subframe_organizer/logging.rb,
lib/astro_subframe_organizer/version.rb,
lib/astro_subframe_organizer/commands.rb,
lib/astro_subframe_organizer/file_set.rb,
lib/astro_subframe_organizer/organizer.rb,
lib/astro_subframe_organizer/astrophoto.rb,
lib/astro_subframe_organizer/commands/run.rb,
lib/astro_subframe_organizer/path_builder.rb,
lib/astro_subframe_organizer/commands/init.rb,
lib/astro_subframe_organizer/file_metadata.rb,
lib/astro_subframe_organizer/fits_organizer.rb,
lib/astro_subframe_organizer/filename_parser.rb,
lib/astro_subframe_organizer/commands/inspect.rb,
lib/astro_subframe_organizer/commands/version.rb,
lib/astro_subframe_organizer/equipment/camera.rb,
lib/astro_subframe_organizer/equipment/filter.rb,
lib/astro_subframe_organizer/utils/unorganizer.rb,
lib/astro_subframe_organizer/equipment_selector.rb,
lib/astro_subframe_organizer/utils/exif_renamer.rb,
lib/astro_subframe_organizer/utils/raw_stripper.rb,
lib/astro_subframe_organizer/equipment/telescope.rb,
lib/astro_subframe_organizer/utils/fits_stripper.rb,
lib/astro_subframe_organizer/utils/exposure_format.rb,
lib/astro_subframe_organizer/commands/organize/base.rb,
lib/astro_subframe_organizer/commands/organize/bias.rb,
lib/astro_subframe_organizer/commands/organize/darks.rb,
lib/astro_subframe_organizer/commands/organize/flats.rb,
lib/astro_subframe_organizer/commands/shared_options.rb,
lib/astro_subframe_organizer/utils/thumbnail_cleaner.rb,
lib/astro_subframe_organizer/commands/organize/lights.rb,
lib/astro_subframe_organizer/commands/raw/revert_name.rb,
lib/astro_subframe_organizer/commands/equipment_options.rb,
lib/astro_subframe_organizer/commands/cleanup/thumbnails.rb,
lib/astro_subframe_organizer/commands/cleanup/unorganize.rb,
lib/astro_subframe_organizer/commands/raw/rename_from_exif.rb,
lib/astro_subframe_organizer/utils/empty_directory_cleaner.rb,
lib/astro_subframe_organizer/path_builders/base_path_builder.rb,
lib/astro_subframe_organizer/path_builders/bias_path_builder.rb,
lib/astro_subframe_organizer/path_builders/dark_path_builder.rb,
lib/astro_subframe_organizer/path_builders/flat_path_builder.rb,
lib/astro_subframe_organizer/path_builders/light_path_builder.rb,
lib/astro_subframe_organizer/commands/cleanup/empty_directories.rb,
lib/astro_subframe_organizer/filename_parsers/fits_header_parser.rb,
lib/astro_subframe_organizer/filename_parsers/cr2_filename_parser.rb,
lib/astro_subframe_organizer/filename_parsers/fits_filename_parser.rb
Overview
lib/astro_subframe_organizer/commands/organize/lights.rb frozen_string_literal: true
Defined Under Namespace
Modules: Commands, Equipment, FilenameParsers, Logging, PathBuilders, Utils
Classes: Astrophoto, Config, EquipmentSelector, FileMetadata, FileSet, FilenameParser, FitsOrganizer, Organizer, PathBuilder
Constant Summary
collapse
- VERSION =
'0.0.2'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.logger ⇒ Object
65
66
67
|
# File 'lib/astro_subframe_organizer.rb', line 65
def logger
@logger ||= default_logger
end
|
Class Method Details
.default_logger ⇒ Object
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# File 'lib/astro_subframe_organizer.rb', line 73
def default_logger
logger = Logger.new($stdout)
logger.level = Logger::INFO
logger.formatter = proc do |severity, _datetime, _progname, msg|
case severity
when 'ERROR', 'FATAL' then "✗ #{msg}\n"
when 'WARN' then "⚠ #{msg}\n"
when 'DEBUG' then "[debug] #{msg}\n"
else "#{msg}\n" end
end
logger
end
|
.prompt ⇒ Object
69
70
71
|
# File 'lib/astro_subframe_organizer.rb', line 69
def prompt
@prompt ||= default_prompt
end
|
.run(dry_run: nil) ⇒ Object